Class Lease
A contract that rents a public endpoint from a NAT.
Inherited Members
Namespace: Makaretu.Nat
Assembly: Makaretu.Nat.dll
Syntax
public class Lease
Properties
| Improve this Doc View SourceInternalPort
The internal port for the public endpoint.
Declaration
public int InternalPort { get; set; }
Property Value
Type | Description |
---|---|
Int32 |
Lifetime
The lifetime of the contract.
Declaration
public TimeSpan Lifetime { get; set; }
Property Value
Type | Description |
---|---|
TimeSpan | Typically the number of seconds. |
Nat
The NAT that owns the public endpoint.
Declaration
public NatClient Nat { get; set; }
Property Value
Type | Description |
---|---|
NatClient |
Nonce
A random value assigned to this lease.
Declaration
public byte[] Nonce { get; set; }
Property Value
Type | Description |
---|---|
Byte[] |
Protocol
The supported protocol of the port.
Declaration
public ProtocolType Protocol { get; set; }
Property Value
Type | Description |
---|---|
ProtocolType |
PublicAddress
The public IP address assigned by the NAT.
Declaration
public IPAddress PublicAddress { get; set; }
Property Value
Type | Description |
---|---|
IPAddress |
PublicPort
The public port assigned by the NAT.
Declaration
public int PublicPort { get; set; }
Property Value
Type | Description |
---|---|
Int32 |