Article View: comp.protocols.tcp-ip
Article #7950Re: Determining Port Numbers & The RPC Portmapper
From: Guy Harris
Date: Fri, 22 Jan 1993 01:30
Date: Fri, 22 Jan 1993 01:30
24 lines
1631 bytes
1631 bytes
>registerrpc will register a prog#/ver# with portmapper. Portmapper assigns the >port #. No, it doesn't. The portmapper doesn't assign port numbers (take a look at RFC 1057, which describes the portmapper's RPC protocol; there ain't no call in there that *chooses* a port number and *assigns* it to a server - there's just a PMAPPROC_SET call to bind an *already-allocated* port number to a particular program and version number and Internet protocol number); other code does (for example, the UDP or TCP implementation, at least in UNIX systems). If all you want to do is just register a port number with the portmapper as being bound to some particular program and version number for some particular protocol, you can do so with "pmap_set()". The advantage of using "pmap_set()" rather than "registerrpc()" is that you don't set up all the rest of the RPC mechanism; given that the original poster didn't *want* to drag in the rest of the RPC mechanism, that's probably what they want. >svc_unregister() removes the entry. So does "pmap_unset()", and it also doesn't pester the rest of the RPC mechanism.
Technical Details
Message-ID:
<16561@auspex-gw.auspex.com>Path:
arc1-ca.pugleaf.net!sparky!uunet!auspex-gw!guyReferences:
<1993Jan20.162611.25831@walter.bellcore.com> <1jki9vINNmr9@aludra.usc.edu> <1993Jan21.155457.27880@panther.mot.com>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!auspex-gw!guy From: guy@Auspex.COM (Guy Harris) Newsgroups: comp.protocols.tcp-ip Subject: Re: Determining Port Numbers & The RPC Portmapper Message-ID: <16561@auspex-gw.auspex.com> Date: 22 Jan 93 01:30:35 GMT References: <1993Jan20.162611.25831@walter.bellcore.com> <1jki9vINNmr9@aludra.usc.edu> <1993Jan21.155457.27880@panther.mot.com> Sender: news@auspex-gw.auspex.com Organization: Auspex Systems, Santa Clara Lines: 24 Nntp-Posting-Host: auspex.auspex.com