Re: gethostname() and gethostbyname() APIs
Re: gethostname() and gethostbyname() APIs
- Subject: Re: gethostname() and gethostbyname() APIs
- From: Justin Walker <email@hidden>
- Date: Sun, 2 May 2004 23:23:30 -0700
On May 2, 2004, at 21:38, Kaza Sudheer wrote:
We had the same problem on panther Server.gethostname() will always
returns
admin.
we need to use getifaddrs() to get IPAddress of the Machine.
If I recall the discussion (around Feb. of this year?), that problem
had to do with the fact that someone set the hostname to 'admin',
possibly during installation. At least, I don't remember anything
solid that pointed to a problem in the system.
'gethostname()' just parrots back what was earlier set by
'sethostname()', during system startup.
In any case, Navin's problem seems to be a crash due to something in
his code (at least, that's the way to bet without seeing anything of
substance).
Regards,
Justin
--
Justin C. Walker, Curmudgeon-At-Large *
Institute for General Semantics | If you're not confused,
| You're not paying attention
*--------------------------------------*-------------------------------*
_______________________________________________
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.