1GETRPCPORT(3) Linux Programmer's Manual GETRPCPORT(3)
2
3
4
6 getrpcport - get RPC port number
7
9 int getrpcport(char *host, int prognum, int versnum, int proto);
10
12 getrpcport() returns the port number for version versnum of the RPC
13 program prognum running on host and using protocol proto. It returns 0
14 if it cannot contact the portmapper, or if prognum is not registered.
15 If prognum is registered but not with version versnum, it will still
16 return a port number (for some version of the program) indicating that
17 the program is indeed registered. The version mismatch will be
18 detected upon the first call to the service.
19
21 Not in POSIX.1-2001. Present on the BSDs, Solaris, and many other sys‐
22 tems.
23
25 This page is part of release 3.53 of the Linux man-pages project. A
26 description of the project, and information about reporting bugs, can
27 be found at http://www.kernel.org/doc/man-pages/.
28
29
30
31 2007-12-23 GETRPCPORT(3)