C# Class SIPSorcery.Net.RTSPServer

Datei anzeigen Open project: sipsorcery/sipsorcery Class Usage Examples

Public Properties

Property Type Description
Closed bool
RTSPClientMessageReceived Action
RTSPClientSocketDisconnected Action

Public Methods

Method Description
Close ( ) : void

Closes the RTSP server socket as well as any open sessions.

CreateRTSPSession ( IPEndPoint remoteEndPoint, IPEndPoint rtcpRemoteEndPoint ) : RTSPSession

Creates a new RTSP session and intialises the RTP and control sockets for the session.

IsConnectionEstablished ( IPEndPoint remoteEndPoint ) : bool
RTSPServer ( IPEndPoint endPoint ) : System
Send ( IPEndPoint dstEndPoint, byte buffer ) : void

Sends data to the RTSP client listening on the destination end point.

Send ( IPEndPoint destinationEndPoint, string message ) : void

Sends a message to the RTSP client listening on the destination end point.

Private Methods

Method Description
AcceptConnections ( string threadName ) : void
Dispose ( bool disposing ) : void
EndSend ( IAsyncResult ar ) : void
Initialise ( ) : void

Initialises and starts listening on the RTSP server socket.

PruneConnections ( string threadName ) : void

Periodically checks the established connections and closes any that have not had a transmission for a specified period or where the number of connections allowed per IP address has been exceeded.

RTPSocketDisconnected ( string sessionID ) : void
RTSPClientDisconnected ( IPEndPoint remoteEndPoint ) : void
RTSPMessageReceived ( RTSPConnection rtspConnection, IPEndPoint remoteEndPoint, byte buffer ) : void
ReceiveCallback ( IAsyncResult ar ) : void

Method Details

Close() public method

Closes the RTSP server socket as well as any open sessions.
public Close ( ) : void
return void

CreateRTSPSession() public method

Creates a new RTSP session and intialises the RTP and control sockets for the session.
public CreateRTSPSession ( IPEndPoint remoteEndPoint, IPEndPoint rtcpRemoteEndPoint ) : RTSPSession
remoteEndPoint System.Net.IPEndPoint The remote end point of the RTSP client that requested the RTSP session be set up.
rtcpRemoteEndPoint System.Net.IPEndPoint
return RTSPSession

IsConnectionEstablished() public method

public IsConnectionEstablished ( IPEndPoint remoteEndPoint ) : bool
remoteEndPoint System.Net.IPEndPoint
return bool

RTSPServer() public method

public RTSPServer ( IPEndPoint endPoint ) : System
endPoint System.Net.IPEndPoint
return System

Send() public method

Sends data to the RTSP client listening on the destination end point.
public Send ( IPEndPoint dstEndPoint, byte buffer ) : void
dstEndPoint System.Net.IPEndPoint
buffer byte The data to send.
return void

Send() public method

Sends a message to the RTSP client listening on the destination end point.
public Send ( IPEndPoint destinationEndPoint, string message ) : void
destinationEndPoint System.Net.IPEndPoint The destination to send the message to.
message string The message to send.
return void

Property Details

Closed public_oe property

public bool Closed
return bool

RTSPClientMessageReceived public_oe property

public Action RTSPClientMessageReceived
return Action

RTSPClientSocketDisconnected public_oe property

public Action RTSPClientSocketDisconnected
return Action