#include <iqueue.h>
Inheritance diagram for IncomingDataQueue:

Public Member Functions | |
| SyncSourcesIterator | begin () |
| SyncSourcesIterator | end () |
| const AppDataUnit * | getData (uint32 stamp, const SyncSource *src=NULL) |
| Retreive data from a specific timestamped packet if such a packet is currently available in the receive buffer. | |
| bool | isWaiting (const SyncSource *src=NULL) const |
| Determine if packets are waiting in the reception queue. | |
| uint32 | getFirstTimestamp (const SyncSource *src=NULL) const |
| Get timestamp of first packet waiting in the queue. | |
| void | setMinValidPacketSequence (uint8 packets) |
| When receiving packets from a new source, it may be convenient to reject a first few packets before we are really sure the source is valid. | |
| uint8 | getDefaultMinValidPacketSequence () const |
| uint8 | getMinValidPacketSequence () const |
| Get the minimun number of consecutive packets that must be received from a source before accepting its data packets. | |
| void | setMaxPacketMisorder (uint16 packets) |
| uint16 | getDefaultMaxPacketMisorder () const |
| uint16 | getMaxPacketMisorder () const |
| void | setMaxPacketDropout (uint16 packets) |
| It also prevents packets sent after a restart of the source being immediately accepted. | |
| uint16 | getDefaultMaxPacketDropout () const |
| uint16 | getMaxPacketDropout () const |
| void | setInQueueCryptoContext (CryptoContext *cc) |
| Set input queue CryptoContext. | |
| void | removeInQueueCryptoContext (CryptoContext *cc) |
| Remove input queue CryptoContext. | |
| CryptoContext * | getInQueueCryptoContext (uint32 ssrc) |
| Get an input queue CryptoContext identified by SSRC. | |
Static Public Member Functions | |
| size_t | getDefaultMembersSize () |
Protected Member Functions | |
| IncomingDataQueue (uint32 size) | |
| virtual | ~IncomingDataQueue () |
| bool | checkSSRCInIncomingRTPPkt (SyncSourceLink &sourceLink, bool is_new, InetAddress &na, tpport_t tp) |
| Apply collision and loop detection and correction algorithm when receiving RTP data packets. | |
| void | setSourceExpirationPeriod (uint8 intervals) |
| Set the number of RTCP intervals that the stack will wait to change the state of a source from stateActive to stateInactive, or to delete the source after being in stateInactive. | |
| virtual size_t | takeInDataPacket () |
| This function is used by the service thread to process the next incoming packet and place it in the receive list. | |
| void | renewLocalSSRC () |
| IncomingDataQueue::IncomingRTPPktLink * | getWaiting (uint32 timestamp, const SyncSource *src=NULL) |
| This is used to fetch a packet in the receive queue and to expire packets older than the current timestamp. | |
| bool | recordReception (SyncSourceLink &srcLink, const IncomingRTPPkt &pkt, const timeval recvtime) |
| Log reception of a new RTP packet from this source. | |
| void | recordExtraction (const IncomingRTPPkt &pkt) |
| Log extraction of a packet from this source from the scheduled reception queue. | |
| void | purgeIncomingQueue () |
| virtual void | onNewSyncSource (const SyncSource &) |
| Virtual called when a new synchronization source has joined the session. | |
| virtual bool | onRTPPacketRecv (IncomingRTPPkt &) |
| A virtual function to support parsing of arriving packets to determine if they should be kept in the queue and to dispatch events. | |
| virtual void | onExpireRecv (IncomingRTPPkt &) |
| A hook to filter packets in the receive queue that are being expired. | |
| virtual bool | onSRTPPacketError (IncomingRTPPkt &pkt, int32 errorCode) |
| A hook that gets called if the decoding of an incoming SRTP was erroneous. | |
| virtual bool | end2EndDelayed (IncomingRTPPktLink &) |
| bool | insertRecvPacket (IncomingRTPPktLink *packetLink) |
| Insert a just received packet in the queue (both general and source specific queues). | |
| virtual size_t | recvData (unsigned char *buffer, size_t length, InetHostAddress &host, tpport_t &port)=0 |
| This function performs the physical I/O for reading a packet from the source. | |
| virtual size_t | getNextDataPacketSize () const=0 |
Protected Attributes | |
| ThreadLock | recvLock |
| IncomingRTPPktLink * | recvFirst |
| IncomingRTPPktLink * | recvLast |
| uint8 | minValidPacketSequence |
| uint16 | maxPacketMisorder |
| uint16 | maxPacketDropout |
| uint8 | sourceExpirationPeriod |
| Mutex | cryptoMutex |
| std::list< CryptoContext * > | cryptoContexts |
Static Protected Attributes | |
| const uint8 | defaultMinValidPacketSequence |
| const uint16 | defaultMaxPacketMisorder |
| const uint16 | defaultMaxPacketDropout |
| const size_t | defaultMembersSize |
|
|
|
|
|
|
|
|
|
|
||||||||||||||||||||
|
Apply collision and loop detection and correction algorithm when receiving RTP data packets. Follows section 8.2 in draft-ietf-avt-rtp-new.
|
|
|
|
|
|
|
|
||||||||||||
|
Retreive data from a specific timestamped packet if such a packet is currently available in the receive buffer.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Get timestamp of first packet waiting in the queue.
|
|
|
Get an input queue CryptoContext identified by SSRC.
|
|
|
|
|
|
|
|
|
Get the minimun number of consecutive packets that must be received from a source before accepting its data packets.
|
|
|
Implemented in RTPDuplex. |
|
||||||||||||
|
This is used to fetch a packet in the receive queue and to expire packets older than the current timestamp.
|
|
|
Insert a just received packet in the queue (both general and source specific queues). If the packet was already in the queue (same SSRC and sequence number), it is not inserted but deleted.
|
|
|
Determine if packets are waiting in the reception queue.
|
|
|
A hook to filter packets in the receive queue that are being expired. This hook may be used to do some application specific processing on expired packets before they are deleted.
|
|
|
Virtual called when a new synchronization source has joined the session.
|
|
|
A virtual function to support parsing of arriving packets to determine if they should be kept in the queue and to dispatch events. A generic header validity check (as specified in RFC 1889) is performed on every incoming packet. If the generic check completes succesfully, this method is called before the packet is actually inserted into the reception queue. May be used to perform additional validity checks or to do some application specific processing.
|
|
||||||||||||
|
A hook that gets called if the decoding of an incoming SRTP was erroneous.
|
|
|
|
|
|
Log extraction of a packet from this source from the scheduled reception queue.
|
|
||||||||||||||||
|
Log reception of a new RTP packet from this source. Usually updates data such as the packet counter, the expected sequence number for the next packet and the time the last packet was received at.
|
|
||||||||||||||||||||
|
This function performs the physical I/O for reading a packet from the source. It is a virtual that is overriden in the derived class.
Implemented in RTPDuplex. |
|
|
Remove input queue CryptoContext. The endQueue method (provided by RTPQueue) also deletes all registered CryptoContexts.
|
|
|
Reimplemented from RTPQueueBase. Reimplemented in RTPDataQueue. |
|
|
Set input queue CryptoContext. The endQueue method (provided by RTPQueue) deletes all registered CryptoContexts.
|
|
|
It also prevents packets sent after a restart of the source being immediately accepted.
|
|
|
|
|
|
When receiving packets from a new source, it may be convenient to reject a first few packets before we are really sure the source is valid. This method sets how many data packets must be received in sequence before the source is considered valid and the stack starts to accept its packets.
|
|
|
Set the number of RTCP intervals that the stack will wait to change the state of a source from stateActive to stateInactive, or to delete the source after being in stateInactive. Note that this value should be uniform accross all participants and SHOULD be fixed for a particular profile.
|
|
|
This function is used by the service thread to process the next incoming packet and place it in the receive list.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1.3.5