mnDeletePortMapB

This deletes a port map that currently exists; your application does not have to be the creator of the port map.

There are two versions of this command; the other version (mnDeletePortMapA) takes the parameter: PortMapID.

mnStartNAT must be used before this command.

Parameters

char * Protocol: the protocol of the port map to be deleted.

long ExternalPort: the external port of the port map to be deleted.

bool Block: If set to true the command will block until the operation has completed.

Returns (Long Long Integer)

When blocking:

0 if no error occurred

-1 if an error occurred

When not blocking:

Any number; this is the action to be used with mnPollUPNP

-1 if an error occurred

Present in

DBP

C++

.Net




This page is in the following sections:
(1) Universal Plug and Play
(0) DarkNet Help