• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Fwd: OT? gethostbyname failure
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Fwd: OT? gethostbyname failure


  • Subject: Fwd: OT? gethostbyname failure
  • From: Perry Winkel <email@hidden>
  • Date: Mon, 18 Feb 2008 21:54:22 +0100

Please send replies to the list, not directly to me.

i am sorry, of course...


  -- GG


perry7 wrote:


but the thing is that 'myhostent' becomes empty, zilch, nada all zeroes


gethostbyname() returns null on errors, including temporary errors.What
does your error-checking code look like?


well kinda simple, i just return on an empty value

hostent *myhostent=gethostbyname(p); if(!myhostent){
return pxok; }


...but thanks to this post i found some error-info functions

hostent *myhostent=gethostbyname(p); if(!myhostent){
pxmye pxad4(&e,"error gethostbyname ",(pxn)h_errno,"
",hstrerror(h_errno)) pxlg2err(&e) return pxok;
}


lets wait and see what these report...

--met vriendelijke groetenperry winkel
<http://www.perry7.nl>http://www.perry7.nl<http://www.myspace.com/dehufters>htt
p://www.myspace.com/dehufters






--
met vriendelijke groeten
perry winkel

http://www.perry7.nl
http://www.myspace.com/dehufters




 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Prev by Date: IB3 Plugin, 'composite' view hierarchy, and subview manipulation
  • Next by Date: Re: Objective-C style formatter / prettyprinter
  • Previous by thread: Re: OT? gethostbyname failure
  • Next by thread: sudo in Run Script Build Phase
  • Index(es):
    • Date
    • Thread