mnStartNAT

This starts up the UPnP NAT (Universal Plug and Play, Network Address Translation) interface. The NAT interface is used to add, delete and edit port forwarding entries on routers on the network.

mnStartUPNP must be used before this command.

mnStartNAT performs mnUpdateNAT so initially up to date port mapping information is stored.

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