C# Class Mono.Nat.NatUtility

Afficher le fichier Open project: nterry/Mono.Nat Class Usage Examples

Méthodes publiques

Méthode Description
DirectMap ( IPAddress gatewayAddress, MapperType type ) : void
Handle ( IPAddress localAddress, byte response, IPEndPoint endpoint, NatProtocol protocol ) : void
IsPrivateAddressSpace ( IPAddress address ) : bool
StartDiscovery ( ) : void
StopDiscovery ( ) : void

Private Methods

Méthode Description
GetLocalAddresses ( bool includeIPv6 ) : System.Net.IPAddress[]
Log ( string format ) : void
NatUtility ( ) : System
Receive ( IMapper mapper, List clients ) : void
Receive ( ISearcher searcher, List clients ) : void
SearchAndListen ( ) : void

Method Details

DirectMap() public static méthode

public static DirectMap ( IPAddress gatewayAddress, MapperType type ) : void
gatewayAddress System.Net.IPAddress
type MapperType
Résultat void

Handle() public static méthode

public static Handle ( IPAddress localAddress, byte response, IPEndPoint endpoint, NatProtocol protocol ) : void
localAddress System.Net.IPAddress
response byte
endpoint System.Net.IPEndPoint
protocol NatProtocol
Résultat void

IsPrivateAddressSpace() public static méthode

public static IsPrivateAddressSpace ( IPAddress address ) : bool
address System.Net.IPAddress
Résultat bool

StartDiscovery() public static méthode

public static StartDiscovery ( ) : void
Résultat void

StopDiscovery() public static méthode

public static StopDiscovery ( ) : void
Résultat void