RE: gethostname() and gethostbyname() APIs
RE: gethostname() and gethostbyname() APIs
- Subject: RE: gethostname() and gethostbyname() APIs
- From: Kaza Sudheer <email@hidden>
- Date: Mon, 3 May 2004 10:08:29 +0530
We had the same problem on panther Server.gethostname() will always returns
admin.
we need to use getifaddrs() to get IPAddress of the Machine.
~KSudheer~
-----Original Message-----
From: email@hidden
[
mailto:email@hidden]On Behalf Of Justin Walker
Sent: Monday, May 03, 2004 9:17 AM
To: Macintosh Network Programming
Subject: Re: gethostname() and gethostbyname() APIs
On May 2, 2004, at 20:35, Navin Sharma wrote:
>
My application is a client-server application. It uses TCP/IP for
>
client-server communication. On Mac OS X (Panther client) making a
>
call to
>
gethostname() and gethostbyname() APIs work properly whereas, same APIs
>
doesn't work and causes application to crash when run under Mac OS X
>
(Panther Server).
>
>
Do you have any idea why this is happening?
No. You haven't given us enough information to determine the cause. I
suspect that the problem is in your code, though. Fortunately, Mac OS
X comes with a debugger, and you should be able to use that to narrow
down the problem.
Regards,
Justin
--
Justin C. Walker, Curmudgeon-At-Large *
Institute for General Semantics | Men are from Earth.
| Women are from Earth.
| Deal with it.
*--------------------------------------*-------------------------------*
_______________________________________________
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.
_______________________________________________
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.