Re: gethostbyname problem with XCode ?
Re: gethostbyname problem with XCode ?
- Subject: Re: gethostbyname problem with XCode ?
- From: Justin Walker <email@hidden>
- Date: Tue, 10 Feb 2004 09:22:55 -0800
On Tuesday, February 10, 2004, at 05:55 AM, Matt Mashyna wrote:
I've been playing with unix again after a long time away. It's good
to be back and rid of OT!
Let's play nice, now, or no milk and cookies this afternoon.
When I call this code to set up a listening
socket it works fine in the debugger. It worked with Project Builder.
But when I turn off XCode's zero link and the other debugging
options, gethostbyname fails. gethostname does work. Should I cheat
and set hostname to "127.0.0.1" ?
Cheating generally gets you where you don't want to be.
Any ideas what could be wrong with the non-debug build ?
Any plans on telling us what "gethostbyname fails" means? Have you,
say, looked at the man pages for the calls you are making.
It's *really* hard to debug without information about what is going
wrong.
FWIW, this code seems to run without a problem on my system (from
command-line, without Xcode in the picture).
Regards,
Justin
--
Justin C. Walker, Curmudgeon-At-Large *
Institute for General Semantics | "Weaseling out of things is
what
| separates us from the animals.
| Well, except the weasel."
| - Homer J Simpson
*--------------------------------------*-------------------------------*
_______________________________________________
macnetworkprog mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/macnetworkprog
Do not post admin requests to the list. They will be ignored.