|
INET Framework for OMNeT++/OMNEST
|
Class generated from inet/transportlayer/rtp/RtpParticipantInfo.msg:24 by opp_msgtool.
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 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 Member Functions | |
| 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) |
Protected Attributes | |
| ::inet::Ipv4Address | address = Ipv4Address::UNSPECIFIED_ADDRESS |
| int | RTPPort = PORT_UNDEF |
| int | RTCPPort = PORT_UNDEF |
Private Member Functions | |
| void | copy (const RtpParticipantInfo_Base &other) |
Class generated from inet/transportlayer/rtp/RtpParticipantInfo.msg:24 by opp_msgtool.
// // 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; //FIXME need revise, several custommized functions should be moved to a processing module
abstract uint32_t 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 |
|
inline |
|
virtual |
|
virtual |
Referenced by inet::rtp::Rtcp::processIncomingRTPPacket().
|
pure virtual |
Implemented in inet::rtp::RtpParticipantInfo.
|
protected |
Referenced by inet::rtp::RtpParticipantInfo::operator=().
|
protecteddelete |
|
overridevirtual |
|
overridevirtual |
|
virtual |
|
virtual |
|
virtual |
Referenced by inet::rtp::Rtcp::processIncomingRTPPacket().
|
pure virtual |
Implemented in inet::rtp::RtpParticipantInfo.
|
protected |
|
protected |
|
protected |