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.6 1999/08/28 00:00:40 peter Exp $
3 .\" $DragonFly: src/lib/libcr/rpc/Attic/getrpcport.3,v 1.2 2003/06/17 04:26:45 dillon Exp $
10 .Nd get RPC port number
13 .Fn getrpcport "char *host" "int prognum" "int versnum" "int proto"
16 returns the port number for version
24 It returns 0 if it cannot contact the portmapper, or if
28 is registered but not with version
30 it will still return a port number (for some version of the program)
31 indicating that the program is indeed registered.
32 The version mismatch will be detected upon the first call to the service.