Show / Hide Table of Contents

Class Lease

A contract that rents a public endpoint from a NAT.

Inheritance
Object
Lease
Inherited Members
Object.ToString()
Object.Equals(Object)
Object.Equals(Object, Object)
Object.ReferenceEquals(Object, Object)
Object.GetHashCode()
Object.GetType()
Object.MemberwiseClone()
Namespace: Makaretu.Nat
Assembly: Makaretu.Nat.dll
Syntax
public class Lease

Properties

| Improve this Doc View Source

InternalPort

The internal port for the public endpoint.

Declaration
public int InternalPort { get; set; }
Property Value
Type Description
Int32
| Improve this Doc View Source

Lifetime

The lifetime of the contract.

Declaration
public TimeSpan Lifetime { get; set; }
Property Value
Type Description
TimeSpan

Typically the number of seconds.

| Improve this Doc View Source

Nat

The NAT that owns the public endpoint.

Declaration
public NatClient Nat { get; set; }
Property Value
Type Description
NatClient
| Improve this Doc View Source

Nonce

A random value assigned to this lease.

Declaration
public byte[] Nonce { get; set; }
Property Value
Type Description
Byte[]
| Improve this Doc View Source

Protocol

The supported protocol of the port.

Declaration
public ProtocolType Protocol { get; set; }
Property Value
Type Description
ProtocolType

Either Tcp or Udp.

| Improve this Doc View Source

PublicAddress

The public IP address assigned by the NAT.

Declaration
public IPAddress PublicAddress { get; set; }
Property Value
Type Description
IPAddress
| Improve this Doc View Source

PublicPort

The public port assigned by the NAT.

Declaration
public int PublicPort { get; set; }
Property Value
Type Description
Int32
  • Improve this Doc
  • View Source
Back to top Generated by DocFX