mnSetPortMapInternalPort

This changes the specified port map’s internal port.

Port map IDs range from 0 to 1 less than the number of found port maps (returned by mnGetPortMapAmount).

mnStartNAT must be used before this command.

Parameters

unsigned int PortMapID: the ID of the port map that the command should use.

long InternalPort: the new internal port.

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