LumiSoft Net Help
UPnP_NAT_Map Constructor (enabled, protocol, remoteHost, externalPort, internalHost, internalPort, description, leaseDuration)
Namespaces ► LumiSoft.Net.UPnP.NAT ► UPnP_NAT_Map ► UPnP_NAT_Map(Boolean, String, String, String, String, Int32, String, Int32)
Default constructor.
Declaration Syntax

C# | Visual Basic | Visual C++ | F#

    public UPnP_NAT_Map(
    	bool enabled,
    	string protocol,
    	string remoteHost,
    	string externalPort,
    	string internalHost,
    	int internalPort,
    	string description,
    	int leaseDuration
    )

    Public Sub New (
    	enabled As Boolean,
    	protocol As String,
    	remoteHost As String,
    	externalPort As String,
    	internalHost As String,
    	internalPort As Integer,
    	description As String,
    	leaseDuration As Integer
    )

    public:
    UPnP_NAT_Map(
    	bool enabled,
    	String^ protocol,
    	String^ remoteHost,
    	String^ externalPort,
    	String^ internalHost,
    	int internalPort,
    	String^ description,
    	int leaseDuration
    )

    new :
            enabled : bool *
            protocol : string *
            remoteHost : string *
            externalPort : string *
            internalHost : string *
            internalPort : int *
            description : string *
            leaseDuration : int -> UPnP_NAT_Map

Parameters

enabled (Boolean)
  Specifies if NAT port map is enabled.

protocol (String)
  Port mapping protocol. Nomrally this value TCP or UDP.

remoteHost (String)
  Remote host IP address. NOTE: Some implementations may use wilcard(*,?) values.

externalPort (String)
  NAT external port number. NOTE: Some implementations may use wilcard(*,?) values.

internalHost (String)
  Internal host IP address.

internalPort (Int32)
  Internal host port number.

description (String)
  NAT port mapping description.

leaseDuration (Int32)
  Lease duration in in seconds. Value null means "never expires".

Assembly: LumiSoft.Net (Module: LumiSoft.Net.dll) Version: 4.5.5510.19119