#include <cc++/rtp.h>
Public Methods | |
uint32 | getID () const |
uint32 | getRate () const |
void | setKitchenSize (microtimeout_t s) |
microtimeout_t | getKitchenDuration () const |
uint32 | getKitchenSize () const |
microtimeout_t | getCurrentKitchenDuration () |
microtimeout_t | getCurrentKitchenSize () |
const char *const | getSDESItem (sdes_item_type_t type) const |
const char *const | getCNAME () const |
const char *const | getNAME () const |
const char *const | getEMAIL () const |
const char *const | getPHONE () const |
const char *const | getLOC () const |
const char *const | getTOOL () const |
const char *const | getNOTE () const |
const char *const | getPRIV () const |
const char *const | getH323_CADDR () const |
bool | isSender () const |
bool | isValid () const |
bool | operator== (const RTPSource &rhs) const |
bool | operator!= (const RTPSource &rhs) const |
RTPSource (uint32 ssrc) | |
~RTPSource () | |
RTPSource (const RTPSource &origin) | |
RTPSource & | operator= (const RTPSource &origin) |
Private Methods | |
void | setCurrentKitchenSize (uint32 s) |
void | endSource () |
void | setSDESItem (sdes_item_type_t item, const char *const value) |
void | recordReception (IncomingRTPPkt &p) |
void | recordInsertion (IncomingRTPPkt &p) |
void | recordExtraction (IncomingRTPPkt &p) |
void | setSender (bool active) |
void | setInitialTimestamp (uint32 ts) |
uint32 | getInitialTimestamp () |
uint16 | getExpectedSeqNum () |
void | setExpectedSeqNum (uint16 n) |
Private Attributes | |
uint32 | ssrc |
uint32 | initial_timestamp |
uint32 | packet_count |
timeval | last_time |
uint32 | kitchensize |
uint32 | currentkitchen |
uint16 | expectedseqnum |
bool | valid |
bool | active_sender |
RTPSource * | prev |
RTPSource * | next |
IncomingRTPPkt * | first |
IncomingRTPPkt * | last |
RTPSource * | nextcollis |
SenderInfo * | sender_info |
ReceiverInfo * | receiver_info |
char ** | sdes_items |
friend | RTPQueue |
friend | QueueRTCPManager |
friend | IncomingRTPPkt |
Static Private Attributes | |
const char *const | unknown |
const SenderInfo * | dummySI |
const ReceiverInfo * | dummyRB |
Friends | |
class | MembershipControl |
Each source for which any RTP or RTCP packet has been received is represented through an RTPSource object, that provides access to all known data about the source.
Definition at line 297 of file rtp.h.
|
|
|
Purges all incoming packets from this source. |
|
|
|
|
|
|
|
Get the current size of the kitchen (buffer) for this packet as the amount of time covered by the current buffered packet.
|
|
|
|
|
|
Get the expected sequence number for the next packet to be received.
|
|
|
|
|
|
Get the timestamp of the first packet received from this source. This timestamp must be substracted to the timestamp of all packets from this source so that applications will not have to handle the initial timestamp.
|
|
Get the required size of the kitchen for this source.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Get the transmission rate for this source.
Referenced by getCurrentKitchenDuration(), getKitchenDuration(), and setKitchenSize().
|
|
Referenced by getCNAME(), getEMAIL(), getH323_CADDR(), getLOC(), getNAME(), getNOTE(), getPHONE(), getPRIV(), and getTOOL().
|
|
|
|
Get if this Source is currently an active sender. |
|
|
|
|
|
|
|
|
|
Log the extraction of a packet from this source from the scheduled queue. Updates the size of this source's kitchen.
|
|
Log the insertion of a packet from this source into the scheduled queue. Updates the size of this source's kitchen. All received packets should be registered with recordReception(), but only those actually inserted into the queue should be registered via this method.
|
|
Log the reception of a new packet from this source. Updates data such as the packet counter, the expected sequence number for the next packet and the time the last packet was received at.
|
|
Set the current size of the kitchen (buffer) for this packet as the amount of octets accummulated in the incoming packet queue.
|
|
Set the expected sequence number for the next packet to be recived.
|
|
Set the timestamp of the first packet received from this source.
|
|
Specify how much time the incoming packets will be buffered for this source. Note that the size is specified in temporal units, thus the internal queue will usually hold as many packets as necessary to fill the specified amount of time. The default size is the global kitchen size when the source is created.
|
|
|
Mark this source as an active sender. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|