1 .\" @(#)getrpcport.3r 2.2 88/08/02 4.0 RPCSRC; from 1.12 88/02/26 SMI
2 .\" $NetBSD: getrpcport.3,v 1.5 2003/01/18 11:29:04 thorpej Exp $
9 .Nd get RPC port number
14 .Fn getrpcport "char *host" "int prognum" "int versnum" "int proto"
17 returns the port number for version
25 It returns 0 if it cannot contact the portmapper, or if
30 is registered but not with version
32 it will still return a port number (for some version of the program)
33 indicating that the program is indeed registered.
34 The version mismatch will be detected upon the first call to the service.