Gets RTP and RTCP public end points.
Declaration Syntax
C# | Visual Basic | Visual C++ | F# |
public bool StunPublicEndPoints( string server, int port, out IPEndPoint rtpEP, out IPEndPoint rtcpEP )
Public Function StunPublicEndPoints ( server As String, port As Integer, <OutAttribute> ByRef rtpEP As IPEndPoint, <OutAttribute> ByRef rtcpEP As IPEndPoint ) As Boolean
public: bool StunPublicEndPoints( String^ server, int port, [OutAttribute] IPEndPoint^% rtpEP, [OutAttribute] IPEndPoint^% rtcpEP )
member StunPublicEndPoints : server : string * port : int * rtpEP : IPEndPoint byref * rtcpEP : IPEndPoint byref -> bool
Parameters
- server (String)
- STUN server name.
- port (Int32)
- STUN server port.
- rtpEP (IPEndPoint%)
- RTP public end point.
- rtcpEP (IPEndPoint%)
- RTCP public end point.
Return Value
Boolean
Returns true if public end points allocated, otherwise false.
Returns true if public end points allocated, otherwise false.
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | Is raised when server is null reference. |
InvalidOperationException | Is raised when RTP session is in invalid state and this method is called. |
Assembly: LumiSoft.Net (Module: LumiSoft.Net.dll) Version: 4.5.5510.19119