C# Class Rtsp.RtspListener

Rtsp lister
Inheritance: IDisposable
Afficher le fichier Open project: ngraziano/SharpRTSP Class Usage Examples

Méthodes publiques

Méthode Description
BeginSendData ( Rtsp.Messages.RtspData aRtspData, AsyncCallback asyncCallback, object state ) : IAsyncResult

Begins the send data.

BeginSendData ( int channel, byte frame, AsyncCallback asyncCallback, object state ) : IAsyncResult

Begins the send data.

Dispose ( ) : void
EndSendData ( IAsyncResult result ) : void

Ends the send data.

ReadOneMessage ( Stream commandStream ) : Rtsp.Messages.RtspChunk

Reads one message.

Reconnect ( ) : void

Reconnect this instance of RtspListener.

RtspListener ( IRtspTransport connection ) : System

Initializes a new instance of the RtspListener class from a TCP connection.

SendMessage ( Rtsp.Messages.RtspMessage message ) : bool

Sends the message.

Start ( ) : void

Starts this instance.

Stop ( ) : void

Stops this instance.

Méthodes protégées

Méthode Description
Dispose ( bool disposing ) : void
OnDataReceived ( Rtsp.RtspChunkEventArgs rtspChunkEventArgs ) : void

Raises the E:DataReceived event.

OnMessageReceived ( Rtsp.RtspChunkEventArgs e ) : void

Raises the E:MessageReceived event.

Private Methods

Méthode Description
DoJob ( ) : void

Does the reading job.

This method read one message from TCP connection. If it a response it add the associate question. The sopping is made by the closing of the TCP connection.

Method Details

BeginSendData() public méthode

Begins the send data.
public BeginSendData ( Rtsp.Messages.RtspData aRtspData, AsyncCallback asyncCallback, object state ) : IAsyncResult
aRtspData Rtsp.Messages.RtspData A Rtsp data.
asyncCallback AsyncCallback The async callback.
state object
Résultat IAsyncResult

BeginSendData() public méthode

Begins the send data.
public BeginSendData ( int channel, byte frame, AsyncCallback asyncCallback, object state ) : IAsyncResult
channel int The channel.
frame byte The frame.
asyncCallback AsyncCallback The async callback.
state object
Résultat IAsyncResult

Dispose() public méthode

public Dispose ( ) : void
Résultat void

Dispose() protected méthode

protected Dispose ( bool disposing ) : void
disposing bool
Résultat void

EndSendData() public méthode

Ends the send data.
public EndSendData ( IAsyncResult result ) : void
result IAsyncResult The result.
Résultat void

OnDataReceived() protected méthode

Raises the E:DataReceived event.
protected OnDataReceived ( Rtsp.RtspChunkEventArgs rtspChunkEventArgs ) : void
rtspChunkEventArgs Rtsp.RtspChunkEventArgs The instance containing the event data.
Résultat void

OnMessageReceived() protected méthode

Raises the E:MessageReceived event.
protected OnMessageReceived ( Rtsp.RtspChunkEventArgs e ) : void
e Rtsp.RtspChunkEventArgs The instance containing the event data.
Résultat void

ReadOneMessage() public méthode

Reads one message.
public ReadOneMessage ( Stream commandStream ) : Rtsp.Messages.RtspChunk
commandStream Stream The Rtsp stream.
Résultat Rtsp.Messages.RtspChunk

Reconnect() public méthode

Reconnect this instance of RtspListener.
Error during socket
public Reconnect ( ) : void
Résultat void

RtspListener() public méthode

Initializes a new instance of the RtspListener class from a TCP connection.
public RtspListener ( IRtspTransport connection ) : System
connection IRtspTransport The connection.
Résultat System

SendMessage() public méthode

Sends the message.
public SendMessage ( Rtsp.Messages.RtspMessage message ) : bool
message Rtsp.Messages.RtspMessage A message.
Résultat bool

Start() public méthode

Starts this instance.
public Start ( ) : void
Résultat void

Stop() public méthode

Stops this instance.
public Stop ( ) : void
Résultat void