Article View: comp.sys.next.programmer
Article #1711Ports and the net name server
From: Daryll Strauss
Date: Fri, 02 Oct 1992 17:46
Date: Fri, 02 Oct 1992 17:46
41 lines
2725 bytes
2725 bytes
I've got a few questions about mach/next ports and their interactions with the netname server, that I'm hoping someone out there in netland can help me with. I want to make sure I'm not missing something obvious. First, is there a way to store "persistent" information about a port other than through the net name server? For example, I have an application that wants to set up a private port and pass that along to other applications (probably via the other applications publicly registered port) Is there some set of information that it can pass to a second application so that the second application can write the information to disk, exit, be restarted some time later, reread the information off the disk and establish a connection to that private port? I get the impression that the answer is no. Ports and access rights are stored in the kernel and when the application quits they are gone forever. Is that correct? Second, is there a way to ask the net name server for all the registered ports that it knows about? Again, I think the answer is no. You have to know the port you are asking for in advance. This provides a potential solution to my first question. If my private port is registered with the net name server with a randomly generated name, then it can pass that randomly generated name to the other applications and they can use that to reestablish the connection. That all works if I can be sure that someone can't query the net name server and find my random name. Finally, is there is a way to request all the ports on the local net that match a certain name? Using the "*" parameter to one of the net name lookup routines will give me one port (the first to answer the broadcast request I would guess) Is there a form that gives me all the ports that answer? If not, why not? Are the broadcasts unreliable? Is there a better way? Thanks in advance, - |Daryll -- Daryll Strauss f The Aerospace Corp. strauss@aero.org n Mail Stop: M1-102 ...!uunet!aero.org!strauss o P.O. Box 92957 NeXTMail: daryll@harlot.rb.ca.us r Los Angeles, Ca. 90009 "It's my reality and I'll warp it if I want to!" d (213) 336-9358
Technical Details
Message-ID:
<1ai1udINNl94@news.aero.org>Path:
arc1-ca.pugleaf.net!sparky!uunet!charon.amdahl.com!pacbell.com!iggy.GW.Vitalink.COM!cs.widener.edu!ukma!darwin.sura.net!zaphod.mps.ohio-state.edu!usc!news.aero.org!Aero.org!straussShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!charon.amdahl.com!pacbell.com!iggy.GW.Vitalink.COM!cs.widener.edu!ukma!darwin.sura.net!zaphod.mps.ohio-state.edu!usc!news.aero.org!Aero.org!strauss From: strauss@Aero.org (Daryll Strauss) Newsgroups: comp.sys.next.programmer Subject: Ports and the net name server Date: 2 Oct 1992 17:46:53 GMT Organization: The Aerospace Corporation Lines: 41 Distribution: world Message-ID: <1ai1udINNl94@news.aero.org> NNTP-Posting-Host: armadillo.aero.org