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
Return Value
STUN_Result
Returns UDP netwrok info.
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