|
INET Framework for OMNeT++/OMNEST
|
The class RtpSenderInfo is used by an Rtp end system for storing information about itself. More...
#include <RtpSenderInfo.h>
Public Member Functions | |
| RtpSenderInfo (uint32_t ssrc=0) | |
| Default constructor. More... | |
| RtpSenderInfo (const RtpSenderInfo &senderInfo) | |
| Copy constructor. More... | |
| virtual | ~RtpSenderInfo () |
| Destructor. More... | |
| RtpSenderInfo & | operator= (const RtpSenderInfo &senderInfo) |
| Assignment operator. More... | |
| virtual RtpSenderInfo * | dup () const override |
| Duplicates this RtpSenderInfo by calling the copy constructor. More... | |
| virtual void | processRTPPacket (Packet *packet, int id, simtime_t arrivalTime) override |
| Stores information about this outgoing RtpPacket. More... | |
| virtual void | processReceptionReport (const ReceptionReport *report, simtime_t arrivalTime) |
| Processes an incoming ReceptionReport for this sender. More... | |
| virtual SenderReport * | senderReport (simtime_t now) override |
| Returns a SenderReport for this rtp endsystem. More... | |
| virtual void | setStartTime (simtime_t startTime) |
| Sets the time (simTime) when this endsystem has started sending rtp packets. More... | |
| virtual void | setClockRate (int clockRate) |
| Sets the clock rate (in ticks per second) this sender increases the rtp time stamp. More... | |
| virtual void | setTimeStampBase (uint32_t timeStampBase) |
| Sets the initial rtp time stamp. More... | |
| virtual void | setSequenceNumberBase (uint16_t sequenceNumberBase) |
| Sets the initial sequence number. More... | |
Public Member Functions inherited from inet::rtp::RtpParticipantInfo | |
| RtpParticipantInfo (uint32_t ssrc=0) | |
| Default constructor. More... | |
| RtpParticipantInfo (const RtpParticipantInfo &participantInfo) | |
| Copy constructor. More... | |
| virtual | ~RtpParticipantInfo () |
| Destructor. More... | |
| RtpParticipantInfo & | operator= (const RtpParticipantInfo &participantInfo) |
| Assignment operator. More... | |
| virtual void | processSenderReport (const SenderReport &report, simtime_t arrivalTime) |
| This method extracts information about an RTP endsystem as provided by the given SenderReport. More... | |
| virtual void | processReceptionReport (const ReceptionReport &report, simtime_t arrivalTime) |
| This method extracts information of the given ReceptionReport. More... | |
| virtual void | processSDESChunk (const SdesChunk *sdesChunk, simtime_t arrivalTime) |
| This method extracts sdes information of the given sdes chunk.and stores it. More... | |
| virtual SdesChunk * | getSDESChunk () const |
| Returns a copy of the sdes chunk used for storing source description items about this system. More... | |
| virtual void | addSDESItem (SdesItem *sdesItem) |
| Adds this sdes item to the sdes chunk of this participant. More... | |
| virtual ReceptionReport * | receptionReport (simtime_t now) |
| This method is intended to be overwritten by subclasses. More... | |
| virtual void | nextInterval (simtime_t now) |
| This method should be called by the rtcp module which uses this class for storing information every time an rtcp packet is sent. More... | |
| virtual bool | toBeDeleted (simtime_t now) |
| Returns true if the end system does no longer participate in the RTP session. More... | |
| virtual bool | isSender () const |
| Returns true if this endsystem has sent at least one RTP data packet during the last two rtcp intervals (including the current one). More... | |
| virtual uint32_t | getSsrc () const override |
| Returns the ssrc identifier of the RTP endsystem. More... | |
| virtual void | setSsrc (uint32_t ssrc) override |
| Sets the ssrc identifier. More... | |
| virtual void | addSDESItem (SdesItem::SdesItemType type, const char *content) |
| Creates a new SdesItem and adds it to the SdesChunk stored in this RtpParticipantInfo. More... | |
| virtual void | parsimPack (cCommBuffer *b) const override |
| virtual void | parsimUnpack (cCommBuffer *b) override |
Public Member Functions inherited from inet::rtp::RtpParticipantInfo_Base | |
| virtual | ~RtpParticipantInfo_Base () |
| virtual void | parsimPack (omnetpp::cCommBuffer *b) const override |
| virtual void | parsimUnpack (omnetpp::cCommBuffer *b) override |
| virtual const ::inet::Ipv4Address & | getAddress () const |
| virtual ::inet::Ipv4Address & | getAddressForUpdate () |
| virtual void | setAddress (const ::inet::Ipv4Address &address) |
| virtual int | getRTPPort () const |
| virtual void | setRTPPort (int RTPPort) |
| virtual int | getRTCPPort () const |
| virtual void | setRTCPPort (int RTCPPort) |
Protected Attributes | |
| simtime_t | _startTime |
| The time when the transmission was started. More... | |
| int | _clockRate |
| The clock rate this sender increases the rtp time stamp. More... | |
| uint32_t | _timeStampBase |
| The initial rtp time stamp. More... | |
| uint16_t | _sequenceNumberBase |
| The initial sequence number. More... | |
| uint32_t | _packetsSent |
| The number of rtp data packets this sender has sent. More... | |
| uint32_t | _bytesSent |
| The number of data bytes this sender has sent. More... | |
Protected Attributes inherited from inet::rtp::RtpParticipantInfo | |
| SdesChunk | _sdesChunk |
| Used for storing sdes information about this RTP endsystem. More... | |
| int | _silentIntervals |
| Stores the number of rtcp intervals (including the current one) during which this RTP endsystem hasn't sent any RTP data packets. More... | |
Protected Attributes inherited from inet::rtp::RtpParticipantInfo_Base | |
| ::inet::Ipv4Address | address = Ipv4Address::UNSPECIFIED_ADDRESS |
| int | RTPPort = PORT_UNDEF |
| int | RTCPPort = PORT_UNDEF |
Private Member Functions | |
| void | copy (const RtpSenderInfo &other) |
Additional Inherited Members | |
Static Public Member Functions inherited from inet::rtp::RtpParticipantInfo | |
| static std::string | ssrcToName (uint32_t ssrc) |
| This method returns the given 32 bit ssrc identifier as an 8 character hexadecimal number which is used as name of an RtpParticipantInfo object. More... | |
Protected Member Functions inherited from inet::rtp::RtpParticipantInfo_Base | |
| bool | operator== (const RtpParticipantInfo_Base &)=delete |
| RtpParticipantInfo_Base (const char *name=nullptr) | |
| RtpParticipantInfo_Base (const RtpParticipantInfo_Base &other) | |
| RtpParticipantInfo_Base & | operator= (const RtpParticipantInfo_Base &other) |
The class RtpSenderInfo is used by an Rtp end system for storing information about itself.
With the stored information it can create a SenderReport.
| inet::rtp::RtpSenderInfo::RtpSenderInfo | ( | uint32_t | ssrc = 0 | ) |
| inet::rtp::RtpSenderInfo::RtpSenderInfo | ( | const RtpSenderInfo & | senderInfo | ) |
Copy constructor.
|
private |
Referenced by operator=(), and RtpSenderInfo().
|
overridevirtual |
Duplicates this RtpSenderInfo by calling the copy constructor.
Reimplemented from inet::rtp::RtpParticipantInfo.
| RtpSenderInfo & inet::rtp::RtpSenderInfo::operator= | ( | const RtpSenderInfo & | senderInfo | ) |
Assignment operator.
|
virtual |
Processes an incoming ReceptionReport for this sender.
Referenced by inet::rtp::Rtcp::processIncomingRTCPReceiverReportPacket(), and inet::rtp::Rtcp::processIncomingRTCPSenderReportPacket().
|
overridevirtual |
Stores information about this outgoing RtpPacket.
Reimplemented from inet::rtp::RtpParticipantInfo.
Referenced by inet::rtp::Rtcp::processOutgoingRTPPacket().
|
overridevirtual |
Returns a SenderReport for this rtp endsystem.
If it hasn't sent rtp data packets during the last 2 rtcp intervals, it returns nullptr.
Reimplemented from inet::rtp::RtpParticipantInfo.
Referenced by inet::rtp::Rtcp::createPacket().
|
virtual |
Sets the clock rate (in ticks per second) this sender increases the rtp time stamp.
Referenced by inet::rtp::Rtcp::handleSenderModuleInitialized().
|
virtual |
Sets the initial sequence number.
Referenced by inet::rtp::Rtcp::handleSenderModuleInitialized().
|
virtual |
Sets the time (simTime) when this endsystem has started sending rtp packets.
Referenced by inet::rtp::Rtcp::handleSenderModuleInitialized().
|
virtual |
Sets the initial rtp time stamp.
Referenced by inet::rtp::Rtcp::handleSenderModuleInitialized().
|
protected |
The number of data bytes this sender has sent.
Referenced by copy(), processRTPPacket(), RtpSenderInfo(), and senderReport().
|
protected |
The clock rate this sender increases the rtp time stamp.
Referenced by copy(), RtpSenderInfo(), senderReport(), and setClockRate().
|
protected |
The number of rtp data packets this sender has sent.
Referenced by copy(), processRTPPacket(), RtpSenderInfo(), and senderReport().
|
protected |
The initial sequence number.
Referenced by copy(), RtpSenderInfo(), and setSequenceNumberBase().
|
protected |
The time when the transmission was started.
Referenced by copy(), RtpSenderInfo(), senderReport(), and setStartTime().
|
protected |
The initial rtp time stamp.
Referenced by copy(), RtpSenderInfo(), and setTimeStampBase().