Initializes a new instance of the PortMapListener class.
[Visual Basic]Overloads Public Sub New( _
ByVal Port As Integer, _
ByVal MapToIP As System.Net.IPEndPoint _
)
[C#]
public PortMapListener(
int Port,
IPEndPoint MapToIP
);
Parameters
- Port
- The port to listen on.
- MapToIP
- The address to forward to.
Remarks
The object will listen on all network addresses on the computer.
Exceptions
Exception Type | Condition |
---|---|
System.ArgumentException | Port is not positive. |
System.ArgumentNullException | MapToIP is null. |
See Also
PortMapListener Class | PortMapListener Members | Org.Mentalis.Proxy.PortMap Namespace | PortMapListener Constructor Overload List