getrpcport(3) CLIX getrpcport(3)
NAME
getrpcport - Get an RPC port number
LIBRARY
Berkeley Software Distribution (libbsd.a)
SYNOPSIS
int getrpcport(
char *host ,
int prognum ,
int versnum ,
int proto );
PARAMETERS
host A pointer to a hostname
prognum An RPC program
versnum An integer representing a version of an RPC program
proto An integer representing a protocol
DESCRIPTION
The getrpcport() function returns the port number for version versnum of
the Remote Procedure Call (RPC) program prognum running on host and using
protocol proto.
RETURN VALUES
The getrpcport() function returns 0 if it cannot contact the portmapper or
if prognum is not registered. If prognum is registered but not with
version versnum, the portmapper returns the port number.
2/94 - Intergraph Corporation 1