LumiSoft Net Help
StunPublicEndPoints Method (server, port, rtpEP, rtcpEP)
NamespacesLumiSoft.Net.RTPRTP_SessionStunPublicEndPoints(String, Int32, IPEndPoint%, IPEndPoint%)
Gets RTP and RTCP public end points.
Declaration Syntax
C#Visual BasicVisual 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.
Exceptions
ExceptionCondition
ArgumentNullExceptionIs raised when server is null reference.
InvalidOperationExceptionIs 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