C# 클래스 NewTOAPIA.Net.Rtp.RtpListener

Listens for packets from the network and distributes them to the appropriate RtpStream
상속: IDisposable
파일 보기 프로젝트 열기: Wiladams/NewTOAPIA 1 사용 예제들

공개 메소드들

메소드 설명
Dispose ( ) : void
RtpListener ( RtpSession rtpSession ) : System

비공개 메소드들

메소드 설명
DisposeBufferPool ( ) : void
DisposeNetwork ( ) : void
DisposeThreads ( ) : void
DistributePackets ( ) : void

DistributePackets turns packets that came from the listener thread into RtpPackets, creating new RtpStreams if one doesn't exist for the RtpPacket's SSRC, then calling RtpStream.newPacket(rtpPacket) to place the RtpPacket into the RtpStream's Queue for processing.

GetBuffer ( ) : BufferChunk

Returns a BufferChunk from the pool, or grows the pool if need be

GrowBufferPool ( ) : void

Grow the buffer pool Called when all the previously allocated packets are in use. Unless we are handling a huge chunk (~= 95MB), it indicates a problem - like packets that aren't being returned to the pool and so we put a limit on the growth.

HandleInvalidPacket ( BufferChunk packet, IPEndPoint src, string exception ) : void
InitializeBufferPool ( ) : void
InitializeNetwork ( ) : void
InitializeThreads ( ) : void
LogEvent ( string msg, EventLogEntryType et, int id ) : void
ReceivePackets ( ) : void
ReturnBuffer ( BufferChunk buffer ) : void

This method is called to return buffers to the bufferPool

메소드 상세

Dispose() 공개 메소드

public Dispose ( ) : void
리턴 void

RtpListener() 공개 메소드

public RtpListener ( RtpSession rtpSession ) : System
rtpSession RtpSession
리턴 System