LumiSoft Net Help
Query Method (host, port, socket)
Namespaces ► LumiSoft.Net.STUN.Client ► STUN_Client ► Query(String, Int32, Socket)
Gets NAT info from STUN server.
Declaration Syntax

C# | Visual Basic | Visual 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

Exception | Condition
--- | ---
Exception | Throws exception if unexpected error happens.

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