1 .\" @(#)getrpcport.3r 2.2 88/08/02 4.0 RPCSRC; from 1.12 88/02/26 SMI
2 .\" $FreeBSD: src/lib/libc/rpc/getrpcport.3,v 1.9 2004/07/02 23:52:12 ru Exp $
9 .Nd get RPC port number
15 .Fn getrpcport "char *host" "int prognum" "int versnum" "int proto"
20 returns the port number for version
28 It returns 0 if it cannot contact the portmapper, or if
33 is registered but not with version
35 it will still return a port number (for some version of the program)
36 indicating that the program is indeed registered.
37 The version mismatch will be detected upon the first call to the service.