• 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: Rendezvous Name
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Rendezvous Name


  • Subject: Re: Rendezvous Name
  • From: Allan Nathanson <email@hidden>
  • Date: Fri, 11 Apr 2003 13:41:00 -0400

From <SystemConfiguration/SCDynamicStoreCopySpecific.h>

SCDynamicStoreCopyLocalHostName()

- Allan


On Friday, April 11, 2003, at 1:30 PM, Mike Cohen wrote:

What's the correct way to obtain the Rendezvous host name for a computer?

I was calling sysctl with KERN_HOSTNAME, which is equivalent to the 'hostname' command. That returns the proper name on all of my computers and for most other people I've had try it. However on one particular site it returns completely bogus host names. We really want it to return a name like "Mike-Cohens-Powerbook.local".

I found that I'm able to get the "human" computer name by calling CSCopyMachineName. Is there something similar for the Rendezvous host name, or any other simple way?

--
Mike Cohen
_______________________________________________
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: 
 >Rendezvous Name (From: Mike Cohen <email@hidden>)

  • Prev by Date: Re: Proxies, Bytes, and CFNetwork
  • Next by Date: RE: Proxies, Bytes, and CFNetwork
  • Previous by thread: Rendezvous Name
  • Next by thread: Getting own IP address
  • Index(es):
    • Date
    • Thread