1GETRPCPORT(3) Library Functions Manual GETRPCPORT(3)
2
3
4
6 getrpcport - get RPC port number
7
9 int getrpcport(host, prognum, versnum, proto)
10 char *host;
11 int prognum, versnum, proto;
12
14 getrpcport() returns the port number for version versnum of the RPC
15 program prognum running on host and using protocol proto. It returns 0
16 if it cannot contact the portmapper, or if prognum is not registered.
17 If prognum is registered but not with version versnum, it will still
18 return a port number (for some version of the program) indicating that
19 the program is indeed registered. The version mismatch will be
20 detected upon the first call to the service.
21
23 Not in POSIX.1-2001. Present on the BSDs, Solaris, and many other sys‐
24 tems.
25
26
27
28 1987-10-06 GETRPCPORT(3)