mnFindPortMap

This searches for a port map with the specified protocol and external port, and returns its port map ID.

This should be used in conjunction with mnPortMapExist to search for port maps. It is not advised to use mnFindPortMap by itself because 0 is returned when a port map is not found but 0 can also be the ID of a port map.

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

char * Protocol: the protocol to search for.

long ExternalPort: the external port to search for.

Returns (Unsigned Integer)

The port map ID of the port map with the specified protocol and external port.

0 if a port map with the specified protocol and external port does not exist

0 if an error occurred

Present in

DBP

C++

.Net




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