mnPortMapExist

This searches for a port map with the specified protocol and external port, and returns 1 if it is found.

This should be used in conjunction with mnFindPortMap 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 (Integer)

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

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

-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