• 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: 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.


References: 
 >RE: gethostname() and gethostbyname() APIs (From: Kaza Sudheer <email@hidden>)

  • Prev by Date: RE: gethostname() and gethostbyname() APIs
  • Next by Date: CFSocket crash in Jaguar
  • Previous by thread: RE: gethostname() and gethostbyname() APIs
  • Next by thread: RE: gethostname() and gethostbyname() APIs
  • Index(es):
    • Date
    • Thread