PortMapListener Constructor (IPAddress, Int32, IPEndPoint)

Mentalis.org Proxy

Mentalis.org Proxy Documentation

PortMapListener Constructor (IPAddress, Int32, IPEndPoint)

Initializes a new instance of the PortMapListener class.

[Visual Basic]Overloads Public Sub New( _
   ByVal Address As System.Net.IPAddress, _
   ByVal Port As Integer, _
   ByVal MapToIP As System.Net.IPEndPoint _
)
[C#]
public PortMapListener(
   IPAddress Address,
   int Port,
   IPEndPoint MapToIP
);

Parameters

Address
The network address to listen on.
Port
The port to listen on.
MapToIP
The address to forward to.

Remarks

For security reasons, Address should not be IPAddress.Any.

Exceptions

Exception Type Condition
System.ArgumentNullException Address or MapToIP is null.
System.ArgumentException Port is not positive.

See Also

PortMapListener Class | PortMapListener Members | Org.Mentalis.Proxy.PortMap Namespace | PortMapListener Constructor Overload List