INET Framework for OMNeT++/OMNEST
|
Class generated from inet/transportlayer/rtp/RTPParticipantInfo.msg:40
by nedtool.
More...
#include <RTPParticipantInfo_m.h>
Public Member Functions | |
virtual | ~RTPParticipantInfo_Base () |
virtual RTPParticipantInfo_Base * | dup () const override |
virtual void | parsimPack (omnetpp::cCommBuffer *b) const override |
virtual void | parsimUnpack (omnetpp::cCommBuffer *b) override |
virtual uint32_t | getSsrc () const =0 |
virtual void | setSsrc (uint32_t ssrc)=0 |
virtual IPv4Address & | getAddress () |
virtual const IPv4Address & | getAddress () const |
virtual void | setAddress (const IPv4Address &address) |
virtual int | getRTPPort () const |
virtual void | setRTPPort (int RTPPort) |
virtual int | getRTCPPort () const |
virtual void | setRTCPPort (int RTCPPort) |
Protected Member Functions | |
bool | operator== (const RTPParticipantInfo_Base &) |
RTPParticipantInfo_Base (const char *name=nullptr) | |
RTPParticipantInfo_Base (const RTPParticipantInfo_Base &other) | |
RTPParticipantInfo_Base & | operator= (const RTPParticipantInfo_Base &other) |
Protected Attributes | |
IPv4Address | address |
int | RTPPort |
int | RTCPPort |
Private Member Functions | |
void | copy (const RTPParticipantInfo_Base &other) |
Class generated from inet/transportlayer/rtp/RTPParticipantInfo.msg:40
by nedtool.
// // This class is a super class for classes intended for storing information // about ~RTP end systems. // It has two subclasses: RTPReceiverInformation which is used for storing // information about other system participating in an ~RTP session. // RTPSenderInformation is used by an ~RTP endsystem for storing information // about itself. // sa RTPReceiverInformation // sa RTPSenderInformation // class RTPParticipantInfo extends cNamedObject { @customize(true); // see the generated C++ header for more info
abstract uint32 ssrc;
// Used for storing the ip address of this endsystem. IPv4Address address = IPv4Address::UNSPECIFIED_ADDRESS;
// Used for storing the port for ~RTP by this endsystem. int RTPPort = PORT_UNDEF;
// Used for storing the port for ~RTCP by this endsystem. int RTCPPort = PORT_UNDEF; }
RTPParticipantInfo_Base is only useful if it gets subclassed, and RTPParticipantInfo is derived from it. The minimum code to be written for RTPParticipantInfo is the following:
class INET_API RTPParticipantInfo : public RTPParticipantInfo_Base { private: void copy(const RTPParticipantInfo& other) { ... }
public: RTPParticipantInfo(const char *name=nullptr) : RTPParticipantInfo_Base(name) {} RTPParticipantInfo(const RTPParticipantInfo& other) : RTPParticipantInfo_Base(other) {copy(other);} RTPParticipantInfo& operator=(const RTPParticipantInfo& other) {if (this==&other) return *this; RTPParticipantInfo_Base::operator=(other); copy(other); return *this;} virtual RTPParticipantInfo *dup() const override {return new RTPParticipantInfo(*this);} // ADD CODE HERE to redefine and implement pure virtual functions from RTPParticipantInfo_Base };
The following should go into a .cc (.cpp) file:
Register_Class(RTPParticipantInfo)
|
protected |
|
protected |
|
virtual |
|
private |
|
inlineoverridevirtual |
Reimplemented in inet::rtp::RTPParticipantInfo, inet::rtp::RTPReceiverInfo, and inet::rtp::RTPSenderInfo.
|
virtual |
|
inlinevirtual |
Referenced by getAddress().
|
virtual |
|
virtual |
Referenced by inet::rtp::RTCP::processIncomingRTPPacket().
|
pure virtual |
Implemented in inet::rtp::RTPParticipantInfo.
|
protected |
Referenced by inet::rtp::RTPParticipantInfo::operator=().
|
protected |
|
overridevirtual |
|
overridevirtual |
|
virtual |
|
virtual |
|
virtual |
Referenced by inet::rtp::RTCP::processIncomingRTPPacket().
|
pure virtual |
Implemented in inet::rtp::RTPParticipantInfo.
|
protected |
|
protected |
|
protected |