C# Class NewTOAPIA.Net.Rtp.RtcpSender

Inheritance: IDisposable
ファイルを表示 Open project: Wiladams/NewTOAPIA Class Usage Examples

Public Methods

Method Description
Dispose ( ) : void
SendRtcpDataNow ( ) : void

Private Methods

Method Description
Dispose ( bool disposing ) : void
DisposePerformanceCounters ( ) : void
Initialize ( ) : void
InitializePerformanceCounters ( ) : void
RtcpSender ( IRtpSession rtpSession ) : System
RtcpTransmissionInterval ( ) : System.TimeSpan

Calculates the amount of time that should elapse before the next Rtcp packet is sent See Colin's book pp 128-142

Send ( bool forced ) : void

Collects the Rtcp data from the session, assembles it into CompoundPackets (via the CompoundPacketBuilder) and sends the packets The current design has a "forced" Send occurring on the thread that makes the call, and a normal Send occurring on the dedicated RtcpSender thread. To make sure that multiple threads aren't making the call at the same time, which can lead to data access exceptions (e.g. Queue empty), we lock here.

SendThread ( ) : void
UpdatePerformanceBytes ( int bytes ) : void
UpdatePerformanceCounters ( int ms ) : void

Updates performance counters

UpdatePerformanceInterval ( System.TimeSpan ts, bool forced ) : void
UpdatePerformancePackets ( short packets ) : void

Method Details

Dispose() public method

public Dispose ( ) : void
return void

SendRtcpDataNow() public method

public SendRtcpDataNow ( ) : void
return void