Show / Hide Table of Contents

Class NatDiscovery

Discovers the possible NATs.

Inheritance
Object
NatDiscovery
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 static class NatDiscovery
Remarks

A gateway to the internet can be a NAT.

Methods

| Improve this Doc View Source

GetGateways()

Get the addresses of gateway(s) to the internet.

Declaration
public static IEnumerable<IPAddress> GetGateways()
Returns
Type Description
IEnumerable<IPAddress>

A sequence of gateway IP addresses.

Remarks

The network interfaces are queried for any gateway. A gateway device is typically also a NAT.

| Improve this Doc View Source

GetIPAddresses()

Get the IP addresses of the local machine.

Declaration
public static IEnumerable<IPAddress> GetIPAddresses()
Returns
Type Description
IEnumerable<IPAddress>

A sequence of IP addresses of the local machine.

| Improve this Doc View Source

GetNats()

Gets the NATs.

Declaration
public static IEnumerable<NatClient> GetNats()
Returns
Type Description
IEnumerable<NatClient>

A sequence of NAT clients that can be talked to,

Remarks

Asks each GetGateways() if it supports PCP or PMP. If true, then a NatClient is retuned.

  • Improve this Doc
  • View Source
Back to top Generated by DocFX