C# 클래스 Rtsp.RtspListener

Rtsp lister
상속: IDisposable
파일 보기 프로젝트 열기: ngraziano/SharpRTSP 1 사용 예제들

공개 메소드들

메소드 설명
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.

보호된 메소드들

메소드 설명
Dispose ( bool disposing ) : void
OnDataReceived ( Rtsp.RtspChunkEventArgs rtspChunkEventArgs ) : void

Raises the E:DataReceived event.

OnMessageReceived ( Rtsp.RtspChunkEventArgs e ) : void

Raises the E:MessageReceived event.

비공개 메소드들

메소드 설명
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.

메소드 상세

BeginSendData() 공개 메소드

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
리턴 IAsyncResult

BeginSendData() 공개 메소드

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
리턴 IAsyncResult

Dispose() 공개 메소드

public Dispose ( ) : void
리턴 void

Dispose() 보호된 메소드

protected Dispose ( bool disposing ) : void
disposing bool
리턴 void

EndSendData() 공개 메소드

Ends the send data.
public EndSendData ( IAsyncResult result ) : void
result IAsyncResult The result.
리턴 void

OnDataReceived() 보호된 메소드

Raises the E:DataReceived event.
protected OnDataReceived ( Rtsp.RtspChunkEventArgs rtspChunkEventArgs ) : void
rtspChunkEventArgs Rtsp.RtspChunkEventArgs The instance containing the event data.
리턴 void

OnMessageReceived() 보호된 메소드

Raises the E:MessageReceived event.
protected OnMessageReceived ( Rtsp.RtspChunkEventArgs e ) : void
e Rtsp.RtspChunkEventArgs The instance containing the event data.
리턴 void

ReadOneMessage() 공개 메소드

Reads one message.
public ReadOneMessage ( Stream commandStream ) : Rtsp.Messages.RtspChunk
commandStream Stream The Rtsp stream.
리턴 Rtsp.Messages.RtspChunk

Reconnect() 공개 메소드

Reconnect this instance of RtspListener.
Error during socket
public Reconnect ( ) : void
리턴 void

RtspListener() 공개 메소드

Initializes a new instance of the RtspListener class from a TCP connection.
public RtspListener ( IRtspTransport connection ) : System
connection IRtspTransport The connection.
리턴 System

SendMessage() 공개 메소드

Sends the message.
public SendMessage ( Rtsp.Messages.RtspMessage message ) : bool
message Rtsp.Messages.RtspMessage A message.
리턴 bool

Start() 공개 메소드

Starts this instance.
public Start ( ) : void
리턴 void

Stop() 공개 메소드

Stops this instance.
public Stop ( ) : void
리턴 void