1GETRPCPORT(3)              Linux Programmer's Manual             GETRPCPORT(3)
2
3
4

NAME

6       getrpcport - get RPC port number
7

SYNOPSIS

9       int getrpcport(char *host, int prognum, int versnum, int proto);
10

DESCRIPTION

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

CONFORMING TO

21       Not in POSIX.1-2001.  Present on the BSDs, Solaris, and many other sys‐
22       tems.
23

COLOPHON

25       This page is part of release 3.25 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)
Impressum