|
INET Framework for OMNeT++/OMNEST
|
Class generated from inet/transportlayer/rtp/RTPPacket.msg:40 by nedtool.
More...
#include <RTPPacket_m.h>
Public Member Functions | |
| virtual | ~RTPPacket_Base () |
| virtual RTPPacket_Base * | dup () const override |
| virtual void | parsimPack (omnetpp::cCommBuffer *b) const override |
| virtual void | parsimUnpack (omnetpp::cCommBuffer *b) override |
| virtual uint8_t | getVersion () const |
| virtual void | setVersion (uint8_t version) |
| virtual bool | getPadding () const |
| virtual void | setPadding (bool padding) |
| virtual bool | getExtension () const |
| virtual void | setExtension (bool extension) |
| virtual bool | getMarker () const |
| virtual void | setMarker (bool marker) |
| virtual int8_t | getPayloadType () const |
| virtual void | setPayloadType (int8_t payloadType) |
| virtual uint16_t | getSequenceNumber () const |
| virtual void | setSequenceNumber (uint16_t sequenceNumber) |
| virtual uint32_t | getTimeStamp () const |
| virtual void | setTimeStamp (uint32_t timeStamp) |
| virtual uint32_t | getSsrc () const |
| virtual void | setSsrc (uint32_t ssrc) |
| virtual void | setCsrcArraySize (unsigned int size) |
| virtual unsigned int | getCsrcArraySize () const |
| virtual uint32_t | getCsrc (unsigned int k) const |
| virtual void | setCsrc (unsigned int k, uint32_t csrc) |
| virtual int | getHeaderLength () const =0 |
| virtual void | setHeaderLength (int headerLength)=0 |
| virtual int | getPayloadLength () const =0 |
| virtual void | setPayloadLength (int payloadLength)=0 |
Protected Member Functions | |
| bool | operator== (const RTPPacket_Base &) |
| RTPPacket_Base (const char *name=nullptr, short kind=0) | |
| RTPPacket_Base (const RTPPacket_Base &other) | |
| RTPPacket_Base & | operator= (const RTPPacket_Base &other) |
Protected Attributes | |
| uint8_t | version |
| bool | padding |
| bool | extension |
| bool | marker |
| int8_t | payloadType |
| uint16_t | sequenceNumber |
| uint32_t | timeStamp |
| uint32_t | ssrc |
| uint32_t * | csrc |
| unsigned int | csrc_arraysize |
Private Member Functions | |
| void | copy (const RTPPacket_Base &other) |
Class generated from inet/transportlayer/rtp/RTPPacket.msg:40 by nedtool.
// // This class represents an RTP data packet. Real data can either // be encapsulated, or simulated by adding length. // // The following RTP header fields exist but aren't used: // padding, extension, csrcCount. The csrcList can't be used // because csrcCount is always 0. // packet RTPPacket { @customize(true); // see the generated C++ header for more info
byteLength = RTPPACKET_FIX_HEADERLENGTH; // 12-byte fixed header
// The rtp version of this ~RTPPacket.
uint8 version = 2; // Set to 1 if padding is used in this ~RTPPacket, 0 otherwise.
// This implementation doesn't use padding bytes, so it is always 0.
bool padding = false; // Set to 1, if this ~RTPPacket contains an rtp header extension, 0 otherwise.
// This implementation doesn't support rtp header extensions, so it is always 0.
bool extension = false; // The marker.
bool marker = false; // The type of payload carried in this ~RTPPacket.
int8 payloadType; // The sequence number of this ~RTPPacket.
uint16 sequenceNumber; // The rtp time stamp of this ~RTPPacket.
uint32 timeStamp; // The ssrc identifier of the creator of this ~RTPPacket.
uint32 ssrc; // no mixers, no contributing sources
uint32 csrc[];abstract int headerLength;
abstract int payloadLength; }
RTPPacket_Base is only useful if it gets subclassed, and RTPPacket is derived from it. The minimum code to be written for RTPPacket is the following:
class INET_API RTPPacket : public RTPPacket_Base { private: void copy(const RTPPacket& other) { ... }
public:
RTPPacket(const char *name=nullptr, short kind=0) : RTPPacket_Base(name,kind) {}
RTPPacket(const RTPPacket& other) : RTPPacket_Base(other) {copy(other);}
RTPPacket& operator=(const RTPPacket& other) {if (this==&other) return *this; RTPPacket_Base::operator=(other); copy(other); return *this;}
virtual RTPPacket *dup() const override {return new RTPPacket(*this);}
// ADD CODE HERE to redefine and implement pure virtual functions from RTPPacket_Base
};
The following should go into a .cc (.cpp) file:
Register_Class(RTPPacket)
|
protected |
|
protected |
|
virtual |
|
private |
|
inlineoverridevirtual |
Reimplemented in inet::rtp::RTPPacket.
|
virtual |
|
virtual |
Referenced by inet::rtp::RTPPacket::getHeaderLength().
|
virtual |
|
pure virtual |
Implemented in inet::rtp::RTPPacket.
|
virtual |
Referenced by inet::rtp::RTPAVProfilePayload32Receiver::processPacket().
|
virtual |
|
pure virtual |
Implemented in inet::rtp::RTPPacket.
|
virtual |
Referenced by inet::rtp::RTPProfile::dataIn().
|
virtual |
|
virtual |
Referenced by inet::rtp::RTPProfile::dataIn(), and inet::rtp::RTCP::processIncomingRTPPacket().
|
virtual |
|
virtual |
|
protected |
Referenced by inet::rtp::RTPPacket::operator=().
|
protected |
|
overridevirtual |
|
overridevirtual |
|
virtual |
|
virtual |
|
virtual |
|
pure virtual |
Implemented in inet::rtp::RTPPacket.
|
virtual |
Referenced by inet::rtp::RTPAVProfilePayload32Sender::sendPacket().
|
virtual |
|
pure virtual |
Implemented in inet::rtp::RTPPacket.
|
virtual |
Referenced by inet::rtp::RTPAVProfilePayload32Sender::sendPacket().
|
virtual |
Referenced by inet::rtp::RTPAVProfilePayload32Sender::sendPacket().
|
virtual |
Referenced by inet::rtp::RTPAVProfilePayload32Sender::sendPacket().
|
virtual |
Referenced by inet::rtp::RTPAVProfilePayload32Sender::sendPacket().
|
virtual |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
Referenced by inet::rtp::RTPPacket::dump(), and inet::rtp::RTPPacket::info().
|
protected |
Referenced by inet::rtp::RTPPacket::dump().
|
protected |
|
protected |
Referenced by inet::rtp::RTPPacket::dump().
|
protected |