1 .\" This page was taken from the 4.4BSD-Lite CDROM (BSD license)
3 .\" %%%LICENSE_START(BSD_ONELINE_CDROM)
4 .\" This page was taken from the 4.4BSD-Lite CDROM (BSD license)
7 .\" @(#)getrpcport.3r 2.2 88/08/02 4.0 RPCSRC; from 1.12 88/02/26 SMI
8 .TH GETRPCPORT 3 2014-05-28 "" "Linux Programmer's Manual"
10 getrpcport \- get RPC port number
13 .B "#include <rpc/rpc.h>"
15 .BI "int getrpcport(const char *" host ", unsigned long " prognum \
16 ", unsigned long " versnum ", unsigned " proto );
20 returns the port number for version
28 It returns 0 if it cannot contact the portmapper, or if
33 is registered but not with version
35 it will still return a port number (for some version of the program)
36 indicating that the program is indeed registered.
37 The version mismatch will be detected upon the first call to the service.
40 Present on the BSDs, Solaris, and many other systems.