Re: Looking through port name server
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