4.3BSD-UWisc/man/cat3/getrpcport.3r




GETRPCPORT(3R)      UNIX Programmer's Manual       GETRPCPORT(3R)



NAME
     getrpcport - get RPC port number

SYNOPSIS
     int getrpcport(host, prognum, versnum, proto)
          char *host;
          int prognum, versnum, proto;

DESCRIPTION
     _G_e_t_r_p_c_p_o_r_t returns the port number for version _v_e_r_s_n_u_m of
     the RPC program _p_r_o_g_n_u_m running on _h_o_s_t and using protocol
     _p_r_o_t_o.  It returns 0 if it cannot contact the portmapper, or
     if _p_r_o_g_n_u_m is not registered.  If _p_r_o_g_n_u_m is registered but
     not with version _v_e_r_s_n_u_m, it will return that port number.









































Printed 12/27/86         21 October 1985                        1