INET Framework for OMNeT++/OMNEST
inet::rtp::RtpInnerPacket Class Reference

Class generated from inet/transportlayer/rtp/RtpInnerPacket.msg:49 by opp_msgtool. More...

#include <RtpInnerPacket_m.h>

Inheritance diagram for inet::rtp::RtpInnerPacket:

Public Member Functions

 RtpInnerPacket (const char *name=nullptr, short kind=0)
 
 RtpInnerPacket (const RtpInnerPacket &other)
 
virtual ~RtpInnerPacket ()
 
RtpInnerPacketoperator= (const RtpInnerPacket &other)
 
virtual RtpInnerPacketdup () const override
 
virtual void parsimPack (omnetpp::cCommBuffer *b) const override
 
virtual void parsimUnpack (omnetpp::cCommBuffer *b) override
 
virtual RtpInpType getType () const
 
virtual void setType (RtpInpType type)
 
virtual const char * getCommonName () const
 
virtual void setCommonName (const char *commonName)
 
virtual int getMtu () const
 
virtual void setMtu (int mtu)
 
virtual int getBandwidth () const
 
virtual void setBandwidth (int bandwidth)
 
virtual int getRtcpPercentage () const
 
virtual void setRtcpPercentage (int rtcpPercentage)
 
virtual const ::inet::Ipv4AddressgetAddress () const
 
virtual ::inet::Ipv4AddressgetAddressForUpdate ()
 
virtual void setAddress (const ::inet::Ipv4Address &address)
 
virtual int getPort () const
 
virtual void setPort (int port)
 
virtual uint32_t getSsrc () const
 
virtual void setSsrc (uint32_t ssrc)
 
virtual int getPayloadType () const
 
virtual void setPayloadType (int payloadType)
 
virtual const char * getFileName () const
 
virtual void setFileName (const char *fileName)
 
virtual int getClockRate () const
 
virtual void setClockRate (int clockRate)
 
virtual int getTimeStampBase () const
 
virtual void setTimeStampBase (int timeStampBase)
 
virtual int getSequenceNumberBase () const
 
virtual void setSequenceNumberBase (int sequenceNumberBase)
 
virtual std::string str () const override
 Writes a short info about this RtpInnerPacket into the given string. More...
 
virtual void dump (std::ostream &os) const
 Writes a longer info about this RtpInnerPacket into the given output stream. More...
 
virtual void setInitializeProfilePkt (int mtu)
 Called by the rtp module after creating the profile module. More...
 
virtual void setProfileInitializedPkt (int rtcpPercentage, int port)
 Called by the profile module after it has received the initializeProfile() message. More...
 
virtual void setInitializeRTCPPkt (const char *commonName, int mtu, int bandwidth, int rtcpPercentage, Ipv4Address address, int port)
 Called by the rtp module to inform the rtcp module about mandatory information for starting the rtp session. More...
 
virtual void setRtcpInitializedPkt (uint32_t ssrc)
 Called by the rtcp module after it has waited for half an rtcp interval for incoming messages from other session participants. More...
 
virtual void setCreateSenderModulePkt (uint32_t ssrc, int payloadType, const char *fileName)
 
virtual void setSenderModuleCreatedPkt (uint32_t ssrc)
 
virtual void setDeleteSenderModulePkt (uint32_t ssrc)
 
virtual void setSenderModuleDeletedPkt (uint32_t ssrc)
 
virtual void setInitializeSenderModulePkt (uint32_t ssrc, const char *fileName, int mtu)
 
virtual void setSenderModuleInitializedPkt (uint32_t ssrc, int payloadType, int clockRate, int timeStampBase, int sequenceNumberBase)
 
virtual void setSenderModuleControlPkt (uint32_t ssrc, RtpSenderControlMessage *msg)
 
virtual void setSenderModuleStatusPkt (uint32_t ssrc, RtpSenderStatusMessage *msg)
 
virtual void setLeaveSessionPkt ()
 Called by the rtp module to inform the rtcp module that the session should be left. More...
 
virtual void setSessionLeftPkt ()
 Called by the rtcp module when the rtcp bye packet has been sent to the network. More...
 
virtual void setDataOutPkt (Packet *packet)
 Capsulates the outgoing RtpPacket into this RtpInnerPacket to transport it within the rtp layer. More...
 
virtual void setDataInPkt (Packet *packet, Ipv4Address address, int port)
 Capsulates the incoming RtpPacket into this RtpInnerPacket to transport it within the rtp layer. More...
 

Protected Member Functions

bool operator== (const RtpInnerPacket &)=delete
 

Protected Attributes

RtpInpType type = RTP_INP_UNDEF
 
::omnetpp::opp_string commonName
 
int mtu = 0
 
int bandwidth = 0
 
int rtcpPercentage = 0
 
::inet::Ipv4Address address = Ipv4Address::UNSPECIFIED_ADDRESS
 
int port = PORT_UNDEF
 
uint32_t ssrc = 0
 
int payloadType = 0
 
::omnetpp::opp_string fileName
 
int clockRate = 0
 
int timeStampBase = 0
 
int sequenceNumberBase = 0
 

Private Member Functions

void copy (const RtpInnerPacket &other)
 

Detailed Description

Class generated from inet/transportlayer/rtp/RtpInnerPacket.msg:49 by opp_msgtool.

//
// This class is used for communication between submodules of the RTP layer module.
//
packet RtpInnerPacket
{
    // The type of this ~RtpInnerPacket.
    RtpInpType type = RTP_INP_UNDEF;
    // The CNAME
    string commonName;
    // The MTU
    int mtu;
    // The Bandwidth
    int bandwidth;
    // The RTCP percentage
    int rtcpPercentage;
    // The Ipv4 address
    Ipv4Address address = Ipv4Address::UNSPECIFIED_ADDRESS;
    // The port number
    int port = PORT_UNDEF;
    // The SSRC identifier
    uint32_t ssrc;
    // The payload type
    int payloadType;
    // The file name
    string fileName;
    // The clock rate
    int clockRate;
    // The RTP time stamp base
    int timeStampBase;
    // The RTP sequence number base
    int sequenceNumberBase;
}

Constructor & Destructor Documentation

◆ RtpInnerPacket() [1/2]

inet::rtp::RtpInnerPacket::RtpInnerPacket ( const char *  name = nullptr,
short  kind = 0 
)

◆ RtpInnerPacket() [2/2]

inet::rtp::RtpInnerPacket::RtpInnerPacket ( const RtpInnerPacket other)

◆ ~RtpInnerPacket()

virtual inet::rtp::RtpInnerPacket::~RtpInnerPacket ( )
virtual

Member Function Documentation

◆ copy()

void inet::rtp::RtpInnerPacket::copy ( const RtpInnerPacket other)
private

◆ dump()

void inet::rtp::RtpInnerPacket::dump ( std::ostream &  os) const
virtual

Writes a longer info about this RtpInnerPacket into the given output stream.

23 {
24  os << "RtpInnerPacket:" << endl;
25  os << " type = " << type << endl;
26  os << " commonName = " << commonName << endl;
27  os << " mtu = " << mtu << endl;
28  os << " bandwidth = " << bandwidth << endl;
29  os << " rtcpPercentage = " << rtcpPercentage << endl;
30  os << " address = " << address << endl;
31  os << " port = " << port << endl;
32  os << " ssrc = " << ssrc << endl;
33  os << " payloadType = " << payloadType << endl;
34  os << " fileName = " << fileName << endl;
35  os << " clockRate = " << clockRate << endl;
36  os << " timeStampBase = " << timeStampBase << endl;
37  os << " sequenceNumberBase = " << sequenceNumberBase << endl;
38 }

◆ dup()

virtual RtpInnerPacket* inet::rtp::RtpInnerPacket::dup ( ) const
inlineoverridevirtual
185 {return new RtpInnerPacket(*this);}

Referenced by inet::rtp::Rtp::dataOut().

◆ getAddress()

virtual const ::inet::Ipv4Address& inet::rtp::RtpInnerPacket::getAddress ( ) const
virtual

◆ getAddressForUpdate()

virtual ::inet::Ipv4Address& inet::rtp::RtpInnerPacket::getAddressForUpdate ( )
inline
205 { return const_cast<::inet::Ipv4Address&>(const_cast<RtpInnerPacket*>(this)->getAddress());}

◆ getBandwidth()

virtual int inet::rtp::RtpInnerPacket::getBandwidth ( ) const
virtual

◆ getClockRate()

virtual int inet::rtp::RtpInnerPacket::getClockRate ( ) const
virtual

◆ getCommonName()

virtual const char* inet::rtp::RtpInnerPacket::getCommonName ( ) const
virtual

◆ getFileName()

virtual const char* inet::rtp::RtpInnerPacket::getFileName ( ) const
virtual

◆ getMtu()

◆ getPayloadType()

virtual int inet::rtp::RtpInnerPacket::getPayloadType ( ) const
virtual

◆ getPort()

virtual int inet::rtp::RtpInnerPacket::getPort ( ) const
virtual

◆ getRtcpPercentage()

virtual int inet::rtp::RtpInnerPacket::getRtcpPercentage ( ) const
virtual

◆ getSequenceNumberBase()

virtual int inet::rtp::RtpInnerPacket::getSequenceNumberBase ( ) const
virtual

◆ getSsrc()

◆ getTimeStampBase()

virtual int inet::rtp::RtpInnerPacket::getTimeStampBase ( ) const
virtual

◆ getType()

◆ operator=()

RtpInnerPacket& inet::rtp::RtpInnerPacket::operator= ( const RtpInnerPacket other)

◆ operator==()

bool inet::rtp::RtpInnerPacket::operator== ( const RtpInnerPacket )
protecteddelete

◆ parsimPack()

virtual void inet::rtp::RtpInnerPacket::parsimPack ( omnetpp::cCommBuffer *  b) const
overridevirtual

◆ parsimUnpack()

virtual void inet::rtp::RtpInnerPacket::parsimUnpack ( omnetpp::cCommBuffer *  b)
overridevirtual

◆ setAddress()

virtual void inet::rtp::RtpInnerPacket::setAddress ( const ::inet::Ipv4Address address)
virtual

◆ setBandwidth()

virtual void inet::rtp::RtpInnerPacket::setBandwidth ( int  bandwidth)
virtual

◆ setClockRate()

virtual void inet::rtp::RtpInnerPacket::setClockRate ( int  clockRate)
virtual

◆ setCommonName()

virtual void inet::rtp::RtpInnerPacket::setCommonName ( const char *  commonName)
virtual

◆ setCreateSenderModulePkt()

void inet::rtp::RtpInnerPacket::setCreateSenderModulePkt ( uint32_t  ssrc,
int  payloadType,
const char *  fileName 
)
virtual
71 {
73  ssrc = ssrc_par;
74  payloadType = payloadType_par;
75  fileName = fileName_par;
76 }

Referenced by inet::rtp::Rtp::createSenderModule().

◆ setDataInPkt()

void inet::rtp::RtpInnerPacket::setDataInPkt ( Packet packet,
Ipv4Address  address,
int  port 
)
virtual

Capsulates the incoming RtpPacket into this RtpInnerPacket to transport it within the rtp layer.

145 {
147  address = address_par;
148  port = port_par;
149  encapsulate(packet);
150 }

Referenced by inet::rtp::Rtp::readRet().

◆ setDataOutPkt()

void inet::rtp::RtpInnerPacket::setDataOutPkt ( Packet packet)
virtual

Capsulates the outgoing RtpPacket into this RtpInnerPacket to transport it within the rtp layer.

139 {
141  encapsulate(packet);
142 }

◆ setDeleteSenderModulePkt()

void inet::rtp::RtpInnerPacket::setDeleteSenderModulePkt ( uint32_t  ssrc)
virtual
85 {
87  ssrc = ssrc_par;
88 }

Referenced by inet::rtp::Rtp::deleteSenderModule().

◆ setFileName()

virtual void inet::rtp::RtpInnerPacket::setFileName ( const char *  fileName)
virtual

◆ setInitializeProfilePkt()

void inet::rtp::RtpInnerPacket::setInitializeProfilePkt ( int  mtu)
virtual

Called by the rtp module after creating the profile module.

It informes the profile about the maximum size an rtp packet can have.

41 {
43  mtu = mtu_par;
44 }

Referenced by inet::rtp::Rtp::initializeProfile().

◆ setInitializeRTCPPkt()

void inet::rtp::RtpInnerPacket::setInitializeRTCPPkt ( const char *  commonName,
int  mtu,
int  bandwidth,
int  rtcpPercentage,
Ipv4Address  address,
int  port 
)
virtual

Called by the rtp module to inform the rtcp module about mandatory information for starting the rtp session.

54 {
56  commonName = commonName_par;
57  mtu = mtu_par;
58  bandwidth = bandwidth_par;
59  rtcpPercentage = rtcpPercentage_par;
60  address = address_par;
61  port = port_par;
62 }

Referenced by inet::rtp::Rtp::initializeRTCP().

◆ setInitializeSenderModulePkt()

void inet::rtp::RtpInnerPacket::setInitializeSenderModulePkt ( uint32_t  ssrc,
const char *  fileName,
int  mtu 
)
virtual
97 {
99  ssrc = ssrc_par;
100  fileName = fileName_par;
101  mtu = mtu_par;
102 }

Referenced by inet::rtp::RtpProfile::createSenderModule().

◆ setLeaveSessionPkt()

void inet::rtp::RtpInnerPacket::setLeaveSessionPkt ( )
virtual

Called by the rtp module to inform the rtcp module that the session should be left.

129 {
131 }

Referenced by inet::rtp::Rtp::leaveSession().

◆ setMtu()

virtual void inet::rtp::RtpInnerPacket::setMtu ( int  mtu)
virtual

◆ setPayloadType()

virtual void inet::rtp::RtpInnerPacket::setPayloadType ( int  payloadType)
virtual

◆ setPort()

virtual void inet::rtp::RtpInnerPacket::setPort ( int  port)
virtual

◆ setProfileInitializedPkt()

void inet::rtp::RtpInnerPacket::setProfileInitializedPkt ( int  rtcpPercentage,
int  port 
)
virtual

Called by the profile module after it has received the initializeProfile() message.

It informs the rtp module about the percentage of the available bandwidth to be used by rtcp and the preferred port for this profile.

47 {
49  rtcpPercentage = rtcpPercentage_par;
50  port = port_par;
51 }

Referenced by inet::rtp::RtpProfile::initializeProfile().

◆ setRtcpInitializedPkt()

void inet::rtp::RtpInnerPacket::setRtcpInitializedPkt ( uint32_t  ssrc)
virtual

Called by the rtcp module after it has waited for half an rtcp interval for incoming messages from other session participants.

It informs the rtp module which later informs the rtp application about the ssrc identifier

65 {
67  ssrc = ssrc_par;
68 }

Referenced by inet::rtp::Rtcp::handleSelfMessage().

◆ setRtcpPercentage()

virtual void inet::rtp::RtpInnerPacket::setRtcpPercentage ( int  rtcpPercentage)
virtual

◆ setSenderModuleControlPkt()

void inet::rtp::RtpInnerPacket::setSenderModuleControlPkt ( uint32_t  ssrc,
RtpSenderControlMessage msg 
)
virtual
115 {
117  ssrc = ssrc_par;
118  encapsulate(msg);
119 }

Referenced by inet::rtp::Rtp::senderModuleControl().

◆ setSenderModuleCreatedPkt()

void inet::rtp::RtpInnerPacket::setSenderModuleCreatedPkt ( uint32_t  ssrc)
virtual
79 {
81  ssrc = ssrc_par;
82 }

Referenced by inet::rtp::RtpProfile::createSenderModule().

◆ setSenderModuleDeletedPkt()

void inet::rtp::RtpInnerPacket::setSenderModuleDeletedPkt ( uint32_t  ssrc)
virtual
91 {
93  ssrc = ssrc_par;
94 }

Referenced by inet::rtp::RtpProfile::deleteSenderModule().

◆ setSenderModuleInitializedPkt()

void inet::rtp::RtpInnerPacket::setSenderModuleInitializedPkt ( uint32_t  ssrc,
int  payloadType,
int  clockRate,
int  timeStampBase,
int  sequenceNumberBase 
)
virtual
105 {
107  ssrc = ssrc_par;
108  payloadType = payloadType_par;
109  clockRate = clockRate_par;
110  timeStampBase = timeStampBase_par;
111  sequenceNumberBase = sequenceNumberBase_par;
112 }

Referenced by inet::rtp::RtpPayloadSender::initializeSenderModule().

◆ setSenderModuleStatusPkt()

void inet::rtp::RtpInnerPacket::setSenderModuleStatusPkt ( uint32_t  ssrc,
RtpSenderStatusMessage msg 
)
virtual

◆ setSequenceNumberBase()

virtual void inet::rtp::RtpInnerPacket::setSequenceNumberBase ( int  sequenceNumberBase)
virtual

◆ setSessionLeftPkt()

void inet::rtp::RtpInnerPacket::setSessionLeftPkt ( )
virtual

Called by the rtcp module when the rtcp bye packet has been sent to the network.

134 {
136 }

Referenced by inet::rtp::Rtcp::createPacket().

◆ setSsrc()

virtual void inet::rtp::RtpInnerPacket::setSsrc ( uint32_t  ssrc)
virtual

◆ setTimeStampBase()

virtual void inet::rtp::RtpInnerPacket::setTimeStampBase ( int  timeStampBase)
virtual

◆ setType()

virtual void inet::rtp::RtpInnerPacket::setType ( RtpInpType  type)
virtual

◆ str()

std::string inet::rtp::RtpInnerPacket::str ( ) const
overridevirtual

Writes a short info about this RtpInnerPacket into the given string.

16 {
17  std::stringstream out;
18  out << "RtpInnerPacket: type=" << type;
19  return out.str();
20 }

Member Data Documentation

◆ address

::inet::Ipv4Address inet::rtp::RtpInnerPacket::address = Ipv4Address::UNSPECIFIED_ADDRESS
protected

◆ bandwidth

int inet::rtp::RtpInnerPacket::bandwidth = 0
protected

Referenced by dump(), and setInitializeRTCPPkt().

◆ clockRate

int inet::rtp::RtpInnerPacket::clockRate = 0
protected

◆ commonName

::omnetpp::opp_string inet::rtp::RtpInnerPacket::commonName
protected

Referenced by dump(), and setInitializeRTCPPkt().

◆ fileName

::omnetpp::opp_string inet::rtp::RtpInnerPacket::fileName
protected

◆ mtu

int inet::rtp::RtpInnerPacket::mtu = 0
protected

◆ payloadType

int inet::rtp::RtpInnerPacket::payloadType = 0
protected

◆ port

int inet::rtp::RtpInnerPacket::port = PORT_UNDEF
protected

◆ rtcpPercentage

int inet::rtp::RtpInnerPacket::rtcpPercentage = 0
protected

◆ sequenceNumberBase

int inet::rtp::RtpInnerPacket::sequenceNumberBase = 0
protected

◆ ssrc

◆ timeStampBase

int inet::rtp::RtpInnerPacket::timeStampBase = 0
protected

◆ type


The documentation for this class was generated from the following files:
inet::rtp::RTP_INP_SESSION_LEFT
@ RTP_INP_SESSION_LEFT
Definition: RtpInnerPacket_m.h:100
inet::rtp::RtpInnerPacket::payloadType
int payloadType
Definition: RtpInnerPacket_m.h:168
inet::rtp::RtpInnerPacket::sequenceNumberBase
int sequenceNumberBase
Definition: RtpInnerPacket_m.h:172
inet::rtp::RtpInnerPacket::clockRate
int clockRate
Definition: RtpInnerPacket_m.h:170
inet::rtp::RtpInnerPacket::fileName
::omnetpp::opp_string fileName
Definition: RtpInnerPacket_m.h:169
inet::rtp::RtpInnerPacket::RtpInnerPacket
RtpInnerPacket(const char *name=nullptr, short kind=0)
inet::Ipv4Address
Ipv4 address.
Definition: Ipv4Address.h:34
inet::rtp::RTP_INP_SENDER_MODULE_DELETED
@ RTP_INP_SENDER_MODULE_DELETED
Definition: RtpInnerPacket_m.h:94
inet::rtp::RTP_INP_PROFILE_INITIALIZED
@ RTP_INP_PROFILE_INITIALIZED
Definition: RtpInnerPacket_m.h:88
inet::rtp::RTP_INP_SENDER_MODULE_CREATED
@ RTP_INP_SENDER_MODULE_CREATED
Definition: RtpInnerPacket_m.h:92
inet::rtp::RtpInnerPacket::bandwidth
int bandwidth
Definition: RtpInnerPacket_m.h:163
inet::rtp::RTP_INP_INITIALIZE_RTCP
@ RTP_INP_INITIALIZE_RTCP
Definition: RtpInnerPacket_m.h:89
inet::rtp::RTP_INP_DATA_IN
@ RTP_INP_DATA_IN
Definition: RtpInnerPacket_m.h:102
inet::rtp::RtpInnerPacket::mtu
int mtu
Definition: RtpInnerPacket_m.h:162
inet::rtp::RTP_INP_INITIALIZE_SENDER_MODULE
@ RTP_INP_INITIALIZE_SENDER_MODULE
Definition: RtpInnerPacket_m.h:95
inet::rtp::RTP_INP_SENDER_MODULE_CONTROL
@ RTP_INP_SENDER_MODULE_CONTROL
Definition: RtpInnerPacket_m.h:97
inet::rtp::RTP_INP_SENDER_MODULE_INITIALIZED
@ RTP_INP_SENDER_MODULE_INITIALIZED
Definition: RtpInnerPacket_m.h:96
inet::rtp::RtpInnerPacket::port
int port
Definition: RtpInnerPacket_m.h:166
inet::rtp::RtpInnerPacket::commonName
::omnetpp::opp_string commonName
Definition: RtpInnerPacket_m.h:161
inet::rtp::RTP_INP_RTCP_INITIALIZED
@ RTP_INP_RTCP_INITIALIZED
Definition: RtpInnerPacket_m.h:90
inet::rtp::RTP_INP_INITIALIZE_PROFILE
@ RTP_INP_INITIALIZE_PROFILE
Definition: RtpInnerPacket_m.h:87
inet::rtp::RTP_INP_DATA_OUT
@ RTP_INP_DATA_OUT
Definition: RtpInnerPacket_m.h:101
inet::rtp::RtpInnerPacket::ssrc
uint32_t ssrc
Definition: RtpInnerPacket_m.h:167
inet::rtp::RtpInnerPacket::type
RtpInpType type
Definition: RtpInnerPacket_m.h:160
inet::rtp::RTP_INP_CREATE_SENDER_MODULE
@ RTP_INP_CREATE_SENDER_MODULE
Definition: RtpInnerPacket_m.h:91
inet::rtp::RtpInnerPacket::address
::inet::Ipv4Address address
Definition: RtpInnerPacket_m.h:165
inet::rtp::RtpInnerPacket::rtcpPercentage
int rtcpPercentage
Definition: RtpInnerPacket_m.h:164
inet::rtp::RTP_INP_LEAVE_SESSION
@ RTP_INP_LEAVE_SESSION
Definition: RtpInnerPacket_m.h:99
inet::rtp::RtpInnerPacket::timeStampBase
int timeStampBase
Definition: RtpInnerPacket_m.h:171
inet::rtp::RTP_INP_SENDER_MODULE_STATUS
@ RTP_INP_SENDER_MODULE_STATUS
Definition: RtpInnerPacket_m.h:98
inet::rtp::RtpInnerPacket::getAddress
virtual const ::inet::Ipv4Address & getAddress() const
inet::rtp::RTP_INP_DELETE_SENDER_MODULE
@ RTP_INP_DELETE_SENDER_MODULE
Definition: RtpInnerPacket_m.h:93