.\" @(#)getrpcport.3r 2.2 88/08/02 4.0 RPCSRC; from 1.12 88/02/26 SMI
.TH GETRPCPORT 3R "6 October 1987"
getrpcport \- get RPC port number
int getrpcport(host, prognum, versnum, proto)
int prognum, versnum, proto;
.IX getrpcport "" "\fLgetrpcport\fR \(em get RPC port number"
returns the port number for version
It returns 0 if it cannot contact the portmapper, or if
is registered but not with version
it will still return a port number (for some version of the program)
indicating that the program is indeed registered.
The version mismatch will be detected upon the first call to the service.