• 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: Looking through port name server
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Looking through port name server


  • Subject: Re: Looking through port name server
  • From: Douglas Davidson <email@hidden>
  • Date: Wed, 5 Dec 2001 09:47:36 -0800

On Tuesday, December 4, 2001, at 09:12 PM, mikevannorsdel wrote:

I was wondering if there is a way to get a list of registered
NSConnections/NSPorts and their registered names? I need this for an
in-house debugger (debugging DO). NSPortNameServer doesn't seem to have a
method for doing this. Is there a central database I need to access to get
these?

Chances are your connections are registered with the bootstrap server. You can get a list of registrations from the bootstrap server with bootstrap_info() (defined in /usr/include/servers/bootstrap.h) but there are a couple of things to keep in mind--first, this lists any Mach port registered with the server, not just those corresponding to NSPorts; second, there are bootstrap subsets to consider, so you should make sure that you do this within the login context that you are interested in.

Douglas Davidson


References: 
 >Looking through port name server (From: email@hidden (mikevannorsdel))

  • Prev by Date: Re: ObjC++ (and a word about Java, too ;-)
  • Next by Date: Re: Application localization
  • Previous by thread: Looking through port name server
  • Next by thread: ANN: Pacifist beta 2 released
  • Index(es):
    • Date
    • Thread