1GETRPCPORT(3)            BSD Library Functions Manual            GETRPCPORT(3)
2

NAME

4     getrpcport — get RPC port number
5

LIBRARY

7     Standard C Library (libc, -lc)
8

SYNOPSIS

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

DESCRIPTION

14     The getrpcport() function returns the port number for version versnum of
15     the RPC program prognum running on host and using protocol proto.  It
16     returns 0 if it cannot contact the portmapper, or if prognum is not reg‐
17     istered.  If prognum is registered but not with version versnum, it will
18     still return a port number (for some version of the program) indicating
19     that the program is indeed registered.  The version mismatch will be
20     detected upon the first call to the service.
21
22BSD                             October 6, 1987                            BSD
Impressum