com.onlineobject.objectnet Namespace

Mapping Members

The Mapping type exposes the following members.

Constructors


  Name Description
Public method Mapping(Protocol, IPAddress, Int32, Int32, Int32, String)
Initializes a new instance of the Mapping class.
Public method Mapping(Protocol, Int32, Int32)
Initializes a new instance of the Mapping class.
Public method Mapping(Protocol, Int32, Int32, String)
Initializes a new instance of the Mapping class.
Public method Mapping(Protocol, Int32, Int32, Int32, String)
Initializes a new instance of the Mapping class.

Methods


  Name Description
Public method Equals
Check if object is equals another
Public method GetHashCode
Return obejct hash code
Public method IsExpired
Determines whether this instance is expired.
Public method ToString
Returns a String that represents this instance.

Properties


  Name Description
Public property Description
Gets the mapping's description. It is the value stored in the NewPortMappingDescription parameter. The NewPortMappingDescription parameter is a human readable string that describes the connection. It is used in sorme web interfaces of routers so the user can see which program is using what port.
Public property Expiration
Gets the expiration. The property value is calculated using Lifetime property.
Public property Lifetime
Gets the lifetime in seconds. The Lifetime parameter tells the router how long the portmapping should be active. Since most programs don't know this in advance, it is often set to 0, which means 'unlimited' or 'permanent'.
Public property PrivateIP
Gets the private ip.
Public property PrivatePort
The PrivatePort parameter specifies the port on a client machine to which all traffic coming in on PublicPort for the protocol specified by Protocol should be forwarded to.
Public property Protocol
Gets the protocol.
Public property PublicIP
Gets the public ip.
Public property PublicPort
Gets the external (visible) port number. It is the value stored in the NewExternalPort parameter . The NewExternalPort parameter is used to specify the TCP or UDP port on the WAN side of the router which should be forwarded.