📄 getrpcport.3
字号:
.\" @(#)getrpcport.3r 2.2 88/08/02 4.0 RPCSRC; from 1.12 88/02/26 SMI.\" $FreeBSD: src/lib/libc/rpc/getrpcport.3,v 1.6 1999/08/28 00:00:40 peter Exp $.\".Dd October 6, 1987.Dt GETRPCPORT 3.Os.Sh NAME.Nm getrpcport.Nd get RPC port number.Sh SYNOPSIS.Ft int.Fn getrpcport "char *host" "int prognum" "int versnum" "int proto".Sh DESCRIPTION.Fn getrpcportreturns the port number for version.Fa versnumof the RPC program.Fa prognumrunning on.Fa hostand using protocol.Fa proto .It returns 0 if it cannot contact the portmapper, or if.Fa prognumis not registered. If.Fa prognumis registered but not with version.Fa versnum ,it will still return a port number (for some version of the program)indicating that the program is indeed registered.The version mismatch will be detected upon the first call to the service.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -