HP-UX Reference (11i v1 00/12) - 3 Library Functions A-M (vol 6)

__________________________________________________________________________________________________________________________________________________________________________________________________
__________________________________________________________________________________________________________________________________________________________________________________________________
STANDARD Printed by: Nora Chuang [nchuang] STANDARD
/build/1111/BRICK/man3/!!!intro.3c
________________________________________________________________
___ ___
g
getrpcport(3N) getrpcport(3N)
NAME
getrpcport() - get RPC port number
SYNOPSIS
int getrpcport(
char *host,
int prognum,
int versnum,
int proto
);
DESCRIPTION
getrpcport() returns the port number for version versnum of the RPC program prognum running on
host and using protocol proto. It returns 0 if it cannot contact portmap or if prognum is not registered. If
prognum is registered but not with version versnum, it returns the port number of the last registered
(prognum, proto) pair.
WARNINGS
User applications that call this routine must be linked with
/usr/lib/librpcsvc.a
. For example,
cc my_source.c -lrpcsvc
AUTHOR
getrpcport() was developed by Sun Microsystems, Inc.
SEE ALSO
portmap(1M).
Section 3346 1 HP-UX Release 11i: December 2000
___
___