LumiSoft Net Help
Query Method (host, port, localEP)
NamespacesLumiSoft.Net.STUN.ClientSTUN_ClientQuery(String, Int32, IPEndPoint)
Gets NAT info from STUN server.
Declaration Syntax
C#Visual BasicVisual C++F#
public static STUN_Result Query(
	string host,
	int port,
	IPEndPoint localEP
)
Public Shared Function Query ( 
	host As String,
	port As Integer,
	localEP As IPEndPoint
) As STUN_Result
public:
static STUN_Result^ Query(
	String^ host, 
	int port, 
	IPEndPoint^ localEP
)
static member Query : 
        host : string * 
        port : int * 
        localEP : IPEndPoint -> STUN_Result 
Parameters
host (String)
STUN server name or IP.
port (Int32)
STUN server port. Default port is 3478.
localEP (IPEndPoint)
Local IP end point.
Return Value
STUN_Result
Returns UDP netwrok info.
Exceptions
ExceptionCondition
ArgumentNullExceptionIs raised when host or localEP is null reference.
ExceptionThrows exception if unexpected error happens.

Assembly: LumiSoft.Net (Module: LumiSoft.Net.dll) Version: 4.5.5510.19119