• 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
RE: gethostname() and gethostbyname() APIs
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.


  • Follow-Ups:
    • Re: gethostname() and gethostbyname() APIs
      • From: Justin Walker <email@hidden>
  • Prev by Date: Re: gethostname() and gethostbyname() APIs
  • Next by Date: Re: gethostname() and gethostbyname() APIs
  • Previous by thread: Re: gethostname() and gethostbyname() APIs
  • Next by thread: Re: gethostname() and gethostbyname() APIs
  • Index(es):
    • Date
    • Thread