Jump to content United States-English
HP.com Home Products and Services Support and Drivers Solutions How to Buy
» Contact HP
More options
HP.com home
HP-UX Reference > G

getrpcport(3N)

HP-UX 11i Version 3: February 2007
» 

Technical documentation

» Feedback
Content starts here

 » Table of Contents

 » Index

NAME

getrpcport() — get RPC port number

SYNOPSIS

u_short getrpcport(char *host, rpcprog_t prognum, rpcvers_t versnum, rpcprot_t 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 the RPC system failed to contact the remote portmap service, the program associated with prognum is not registered, or there is no mapping between the program and a port. If prognum is registered but not with version versnum, it returns the port number of the last registered (prognum, proto) pair.

This routine exists for backward compatibility only. Enhanced functionality is provided by rpcb_getaddr() (see rpcbind(3N)).

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).

Printable version
Privacy statement Using this site means you accept its terms Feedback to webmaster
© 1983-2007 Hewlett-Packard Development Company, L.P.