pmap_set()

The pmap_set() call sets the mapping of the program (specified by prognum, versnum, and protocol) to port on the local machine's Portmapper. This procedure is automatically called by the svc_register() procedure.

Syntax

#include <rpc\rpc.h>

bool_t
pmap_set(prognum, versnum, protocol, port)
u_long prognum;
u_long versnum;
u_long protocol;
u_short port;

Parameters

prognum

versnum protocol port

Return Values

The value 1 indicates success; the value 0 indicates an error.

Related Calls


[Back: pmap_rmtcall()]
[Next: pmap_unset()]