C# Class STUN.STUNClient

Datei anzeigen Open project: RELOAD-NET/RELOAD.NET

Public Methods

Method Description
GetPublicIP ( ) : String
GetPublicIPEndPoint ( ) : IPEndPoint
GetPublicIPEndPoint ( IPEndPoint localEndpoint ) : IPEndPoint
STUNClient ( String HostnameOrIP, int Port, TransportProtocol TransportProtocol, IPVersion IPVersion ) : System

Private Methods

Method Description
FormSTUNBindingRequest ( ) : STUNMessage
FormSTUNIndication ( ) : STUNMessage
FormSTUNIndication ( String Software ) : STUNMessage
ProcessSTUNBindingErrorResponse ( STUNMessage StunMessage ) : STUNErrorCode
ProcessSTUNBindingSuccessResponse ( STUNMessage StunMessage ) : IPEndPoint
SendOverTCP ( String IP, int Port, STUNMessage StunMessage ) : STUNMessage
SendOverTCP ( String IP, int Port, STUNMessage StunMessage, IPEndPoint localEndpoint ) : STUNMessage
SendOverUDP ( String IP, int Port, STUNMessage StunMessage ) : STUNMessage

Method Details

GetPublicIP() public method

public GetPublicIP ( ) : String
return String

GetPublicIPEndPoint() public method

public GetPublicIPEndPoint ( ) : IPEndPoint
return System.Net.IPEndPoint

GetPublicIPEndPoint() public method

public GetPublicIPEndPoint ( IPEndPoint localEndpoint ) : IPEndPoint
localEndpoint System.Net.IPEndPoint
return System.Net.IPEndPoint

STUNClient() public method

public STUNClient ( String HostnameOrIP, int Port, TransportProtocol TransportProtocol, IPVersion IPVersion ) : System
HostnameOrIP String
Port int
TransportProtocol TransportProtocol
IPVersion IPVersion
return System