mnUpdateNAT

This updates the list of port forwarding entries so that mnGetPortMap commands return up to date information.

This does not have to be used after adding, deleting or editing a port map as the list is updated automatically in these cases. The list will not be updated automatically if another application on the network changes a port mapping; it is therefore possible that information in the list is not up to date.

mnGetPortMap commands can be used to return port mapping information gathered by mnUpdateNAT. Initially mnGetPortMapAmount should be used to determine the amount of port mappings found.

mnStartNAT must be used before this command.

Parameters

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