pmap_unset()

The pmap_unset() call removes the mappings associated with prognum and versnum on the local machine's Portmapper. All ports for each transport protocol currently mapping the prognum and versnum are removed from the PORTMAP service.

Syntax

#include <rpc\rpc.h>

bool_t
pmap_unset(prognum, versnum)
u_long prognum;
u_long versnum;

Parameters

prognum

versnum

Return Values

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

Examples

#define RMTPROGNUM   (u_long)0x3fffffffL#define RMTPROGVER   (u_long)0x1L
...
/* remove the mapping of remote program */
/* and its port from local Portmapper   */
pmap_unset(RMTPROGNUM, RMTPROGVER);
...

Related Calls


[Back: pmap_set()]
[Next: registerrpc()]