开发者

Can multiple Sun RPC (ONC-RPC) program numbers be used on the same port?

开发者 https://www.devze.com 2023-04-04 12:41 出处:网络
An ONC RPC header contains a program number, version number, and procedure number to identify the call. Normally different RPC programs (services) are implemented by different processes, so the progra

An ONC RPC header contains a program number, version number, and procedure number to identify the call. Normally different RPC programs (services) are implemented by different processes, so the programs map to different TCP/UDP port numbers. If a single process implemented more than one开发者_StackOverflow RPC program, could it register and use the same port for all of them? It seems like the program number is sufficient to demultiplex to the correct service.

Are there any real-world examples of doing so?


It's absolutely legal and possible to run multiple services on the same TCP/UDP port number. Nevertheless, this is not a common practice. The one case which I know is dCache NFS server runs nfsd and mountd on the port 2049.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号