C# Class NewTOAPIA.Net.Rtp.RtpEvents

Events contains all the events raised by the Rtp/Rtcp code Each event consists of 4 items - an EventArgs, a Delegate, an Event and an internal method Raise*Event that actually fires the event, and if the event is not hooked logs information to the EventLog. Because all our events follow the same pattern, they have been streamlined to call a single method (FireEvent) to actually fire them. This method uses the delegate's invocation list to call the hooked methods in a non-linked list format Due to our use of the static EventThrower which calls all events from a single thread, all methods in this class are static as well. They are not meant to be called in a multi-threaded way (although it would probably work fine since no static members are touched). Consideration was given to breaking these down by Rtp, Rtcp and shared (Rtp + Rtcp) events but due to the limited number of events it wasn't deemed necessary. It would be interesting to query our API users to see how many of them use the events and which events they use - Rtp, Rtcp or Shared
Exibir arquivo Open project: Wiladams/NewTOAPIA Class Usage Examples

Private Methods

Method Description
FireEvent ( Delegate del, object args ) : bool

This method is used to actually fire an event It returns true if it called any delegates, false otherwise (event wasn't hooked)

RaiseAppPacketReceivedEvent ( object args ) : void
RaiseDuplicateCNameDetectedEvent ( object args ) : void
RaiseFrameOutOfSequenceEvent ( object args ) : void
RaiseHiddenSocketExceptionEvent ( object args ) : void
RaiseInvalidPacketEvent ( object args ) : void
RaiseInvalidPacketInFrameEvent ( object args ) : void
RaiseNetworkTimeoutEvent ( object args ) : void
RaisePacketOutOfSequenceEvent ( object args ) : void
RaiseReceiverReportEvent ( object args ) : void
RaiseRtpParticipantAddedEvent ( object args ) : void
RaiseRtpParticipantDataChangedEvent ( object args ) : void
RaiseRtpParticipantRemovedEvent ( object args ) : void
RaiseRtpParticipantTimeoutEvent ( object args ) : void
RaiseRtpStreamAddedEvent ( object args ) : void
RaiseRtpStreamRemovedEvent ( object args ) : void
RaiseRtpStreamTimeoutEvent ( object args ) : void