.\" @(#)getrpcport.3r 1.1 85/12/28 SMI; new on release 3.0 .TH GETRPCPORT 3R "21 October 1985" .SH NAME getrpcport \- get RPC port number .SH SYNOPSIS .ft B .nf int getrpcport(host, prognum, versnum, proto) char *host; int prognum, versnum, proto; .fi .SH DESCRIPTION .I Getrpcport returns the port number for version .I versnum of the RPC program .I prognum running on .I host and using protocol .IR proto . It returns 0 if it cannot contact the portmapper, or if .I prognum is not registered. If .I prognum is registered but not with version .IR versnum , it will return that port number.