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

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