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

This class is used for communication between submodules of the RTP layer module. More...

#include <RTPInnerPacket.h>

Inheritance diagram for inet::rtp::RTPInnerPacket:
inet::rtp::RTPInnerPacket_Base

Public Member Functions

 RTPInnerPacket (const char *name=nullptr, int kind=0)
 
 RTPInnerPacket (const RTPInnerPacket &other)
 
RTPInnerPacketoperator= (const RTPInnerPacket &other)
 
virtual RTPInnerPacketdup () const override
 
virtual std::string info () 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 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 ssrc, int payloadType, const char *fileName)
 
virtual void setSenderModuleCreatedPkt (uint32 ssrc)
 
virtual void setDeleteSenderModulePkt (uint32 ssrc)
 
virtual void setSenderModuleDeletedPkt (uint32 ssrc)
 
virtual void setInitializeSenderModulePkt (uint32 ssrc, const char *fileName, int mtu)
 
virtual void setSenderModuleInitializedPkt (uint32 ssrc, int payloadType, int clockRate, int timeStampBase, int sequenceNumberBase)
 
virtual void setSenderModuleControlPkt (uint32 ssrc, RTPSenderControlMessage *msg)
 
virtual void setSenderModuleStatusPkt (uint32 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 (RTPPacket *packet)
 Capsulates the outgoing RTPPacket into this RTPInnerPacket to transport it within the rtp layer. More...
 
virtual void setDataInPkt (RTPPacket *packet, IPv4Address address, int port)
 Capsultes the incoming RTPPacket into this RTPInnerPacket to transport it within the rtp layer. More...
 
virtual int getMTU () const
 Returns the maximum transmission unit stored in this RTPInnerPacket. More...
 
- Public Member Functions inherited from inet::rtp::RTPInnerPacket_Base
virtual ~RTPInnerPacket_Base ()
 
virtual void parsimPack (omnetpp::cCommBuffer *b) const override
 
virtual void parsimUnpack (omnetpp::cCommBuffer *b) override
 
virtual short getType () const
 
virtual void setType (short 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 IPv4AddressgetAddress ()
 
virtual const IPv4AddressgetAddress () const
 
virtual void setAddress (const 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)
 

Additional Inherited Members

- Protected Member Functions inherited from inet::rtp::RTPInnerPacket_Base
bool operator== (const RTPInnerPacket_Base &)
 
 RTPInnerPacket_Base (const char *name=nullptr, short kind=0)
 
 RTPInnerPacket_Base (const RTPInnerPacket_Base &other)
 
RTPInnerPacket_Baseoperator= (const RTPInnerPacket_Base &other)
 
- Protected Attributes inherited from inet::rtp::RTPInnerPacket_Base
short type
 
::omnetpp::opp_string commonName
 
int mtu
 
int bandwidth
 
int rtcpPercentage
 
IPv4Address address
 
int port
 
uint32_t ssrc
 
int payloadType
 
::omnetpp::opp_string fileName
 
int clockRate
 
int timeStampBase
 
int sequenceNumberBase
 

Detailed Description

This class is used for communication between submodules of the RTP layer module.

Constructor & Destructor Documentation

inet::rtp::RTPInnerPacket::RTPInnerPacket ( const char *  name = nullptr,
int  kind = 0 
)
inline
33 : RTPInnerPacket_Base(name, kind) {}
RTPInnerPacket_Base(const char *name=nullptr, short kind=0)
inet::rtp::RTPInnerPacket::RTPInnerPacket ( const RTPInnerPacket other)
inline
34 : RTPInnerPacket_Base(other) {}
RTPInnerPacket_Base(const char *name=nullptr, short kind=0)

Member Function Documentation

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

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

36 {
37  os << "RTPInnerPacket:" << endl;
38  os << " type = " << type << endl;
39  os << " commonName = " << commonName << endl;
40  os << " mtu = " << mtu << endl;
41  os << " bandwidth = " << bandwidth << endl;
42  os << " rtcpPercentage = " << rtcpPercentage << endl;
43  os << " address = " << address << endl;
44  os << " port = " << port << endl;
45  os << " ssrc = " << ssrc << endl;
46  os << " payloadType = " << payloadType << endl;
47  os << " fileName = " << fileName << endl;
48  os << " clockRate = " << clockRate << endl;
49  os << " timeStampBase = " << timeStampBase << endl;
50  os << " sequenceNumberBase = " << sequenceNumberBase << endl;
51 }
int clockRate
Definition: RTPInnerPacket_m.h:180
int bandwidth
Definition: RTPInnerPacket_m.h:173
uint32_t ssrc
Definition: RTPInnerPacket_m.h:177
IPv4Address address
Definition: RTPInnerPacket_m.h:175
short type
Definition: RTPInnerPacket_m.h:170
::omnetpp::opp_string commonName
Definition: RTPInnerPacket_m.h:171
int port
Definition: RTPInnerPacket_m.h:176
int rtcpPercentage
Definition: RTPInnerPacket_m.h:174
::omnetpp::opp_string fileName
Definition: RTPInnerPacket_m.h:179
int sequenceNumberBase
Definition: RTPInnerPacket_m.h:182
int timeStampBase
Definition: RTPInnerPacket_m.h:181
int payloadType
Definition: RTPInnerPacket_m.h:178
int mtu
Definition: RTPInnerPacket_m.h:172
virtual RTPInnerPacket* inet::rtp::RTPInnerPacket::dup ( ) const
inlineoverridevirtual

Reimplemented from inet::rtp::RTPInnerPacket_Base.

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

36 { return new RTPInnerPacket(*this); }
RTPInnerPacket(const char *name=nullptr, int kind=0)
Definition: RTPInnerPacket.h:33
virtual int inet::rtp::RTPInnerPacket::getMTU ( ) const
inlinevirtual
std::string inet::rtp::RTPInnerPacket::info ( ) const
overridevirtual

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

29 {
30  std::stringstream out;
31  out << "RTPInnerPacket: type=" << type;
32  return out.str();
33 }
short type
Definition: RTPInnerPacket_m.h:170
RTPInnerPacket& inet::rtp::RTPInnerPacket::operator= ( const RTPInnerPacket other)
inline
35 { RTPInnerPacket_Base::operator=(other); return *this; }
RTPInnerPacket_Base & operator=(const RTPInnerPacket_Base &other)
void inet::rtp::RTPInnerPacket::setCreateSenderModulePkt ( uint32  ssrc,
int  payloadType,
const char *  fileName 
)
virtual

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

84 {
86  ssrc = ssrc_par;
87  payloadType = payloadType_par;
88  fileName = fileName_par;
89 }
uint32_t ssrc
Definition: RTPInnerPacket_m.h:177
short type
Definition: RTPInnerPacket_m.h:170
Definition: RTPInnerPacket_m.h:78
::omnetpp::opp_string fileName
Definition: RTPInnerPacket_m.h:179
int payloadType
Definition: RTPInnerPacket_m.h:178
void inet::rtp::RTPInnerPacket::setDataInPkt ( RTPPacket packet,
IPv4Address  address,
int  port 
)
virtual

Capsultes the incoming RTPPacket into this RTPInnerPacket to transport it within the rtp layer.

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

158 {
160  address = address_par;
161  port = port_par;
162  encapsulate(packet);
163 }
IPv4Address address
Definition: RTPInnerPacket_m.h:175
short type
Definition: RTPInnerPacket_m.h:170
Definition: RTPInnerPacket_m.h:89
int port
Definition: RTPInnerPacket_m.h:176
void inet::rtp::RTPInnerPacket::setDataOutPkt ( RTPPacket packet)
virtual

Capsulates the outgoing RTPPacket into this RTPInnerPacket to transport it within the rtp layer.

Referenced by inet::rtp::RTPAVProfilePayload32Sender::sendPacket().

152 {
154  encapsulate(packet);
155 }
Definition: RTPInnerPacket_m.h:88
short type
Definition: RTPInnerPacket_m.h:170
void inet::rtp::RTPInnerPacket::setDeleteSenderModulePkt ( uint32  ssrc)
virtual

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

98 {
100  ssrc = ssrc_par;
101 }
uint32_t ssrc
Definition: RTPInnerPacket_m.h:177
short type
Definition: RTPInnerPacket_m.h:170
Definition: RTPInnerPacket_m.h:80
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.

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

54 {
56  mtu = mtu_par;
57 }
short type
Definition: RTPInnerPacket_m.h:170
Definition: RTPInnerPacket_m.h:74
int mtu
Definition: RTPInnerPacket_m.h:172
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.

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

67 {
69  commonName = commonName_par;
70  mtu = mtu_par;
71  bandwidth = bandwidth_par;
72  rtcpPercentage = rtcpPercentage_par;
73  address = address_par;
74  port = port_par;
75 }
int bandwidth
Definition: RTPInnerPacket_m.h:173
IPv4Address address
Definition: RTPInnerPacket_m.h:175
short type
Definition: RTPInnerPacket_m.h:170
::omnetpp::opp_string commonName
Definition: RTPInnerPacket_m.h:171
int port
Definition: RTPInnerPacket_m.h:176
int rtcpPercentage
Definition: RTPInnerPacket_m.h:174
Definition: RTPInnerPacket_m.h:76
int mtu
Definition: RTPInnerPacket_m.h:172
void inet::rtp::RTPInnerPacket::setInitializeSenderModulePkt ( uint32  ssrc,
const char *  fileName,
int  mtu 
)
virtual

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

110 {
112  ssrc = ssrc_par;
113  fileName = fileName_par;
114  mtu = mtu_par;
115 }
Definition: RTPInnerPacket_m.h:82
uint32_t ssrc
Definition: RTPInnerPacket_m.h:177
short type
Definition: RTPInnerPacket_m.h:170
::omnetpp::opp_string fileName
Definition: RTPInnerPacket_m.h:179
int mtu
Definition: RTPInnerPacket_m.h:172
void inet::rtp::RTPInnerPacket::setLeaveSessionPkt ( )
virtual

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

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

142 {
144 }
short type
Definition: RTPInnerPacket_m.h:170
Definition: RTPInnerPacket_m.h:86
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.

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

60 {
62  rtcpPercentage = rtcpPercentage_par;
63  port = port_par;
64 }
Definition: RTPInnerPacket_m.h:75
short type
Definition: RTPInnerPacket_m.h:170
int port
Definition: RTPInnerPacket_m.h:176
int rtcpPercentage
Definition: RTPInnerPacket_m.h:174
void inet::rtp::RTPInnerPacket::setRtcpInitializedPkt ( uint32  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

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

78 {
80  ssrc = ssrc_par;
81 }
uint32_t ssrc
Definition: RTPInnerPacket_m.h:177
short type
Definition: RTPInnerPacket_m.h:170
Definition: RTPInnerPacket_m.h:77
void inet::rtp::RTPInnerPacket::setSenderModuleControlPkt ( uint32  ssrc,
RTPSenderControlMessage msg 
)
virtual

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

128 {
130  ssrc = ssrc_par;
131  encapsulate(msg);
132 }
uint32_t ssrc
Definition: RTPInnerPacket_m.h:177
short type
Definition: RTPInnerPacket_m.h:170
Definition: RTPInnerPacket_m.h:84
void inet::rtp::RTPInnerPacket::setSenderModuleCreatedPkt ( uint32  ssrc)
virtual

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

92 {
94  ssrc = ssrc_par;
95 }
Definition: RTPInnerPacket_m.h:79
uint32_t ssrc
Definition: RTPInnerPacket_m.h:177
short type
Definition: RTPInnerPacket_m.h:170
void inet::rtp::RTPInnerPacket::setSenderModuleDeletedPkt ( uint32  ssrc)
virtual

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

104 {
106  ssrc = ssrc_par;
107 }
Definition: RTPInnerPacket_m.h:81
uint32_t ssrc
Definition: RTPInnerPacket_m.h:177
short type
Definition: RTPInnerPacket_m.h:170
void inet::rtp::RTPInnerPacket::setSenderModuleInitializedPkt ( uint32  ssrc,
int  payloadType,
int  clockRate,
int  timeStampBase,
int  sequenceNumberBase 
)
virtual

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

118 {
120  ssrc = ssrc_par;
121  payloadType = payloadType_par;
122  clockRate = clockRate_par;
123  timeStampBase = timeStampBase_par;
124  sequenceNumberBase = sequenceNumberBase_par;
125 }
int clockRate
Definition: RTPInnerPacket_m.h:180
uint32_t ssrc
Definition: RTPInnerPacket_m.h:177
short type
Definition: RTPInnerPacket_m.h:170
Definition: RTPInnerPacket_m.h:83
int sequenceNumberBase
Definition: RTPInnerPacket_m.h:182
int timeStampBase
Definition: RTPInnerPacket_m.h:181
int payloadType
Definition: RTPInnerPacket_m.h:178
void inet::rtp::RTPInnerPacket::setSenderModuleStatusPkt ( uint32  ssrc,
RTPSenderStatusMessage msg 
)
virtual

Referenced by inet::rtp::RTPPayloadSender::endOfFile(), inet::rtp::RTPPayloadSender::pause(), inet::rtp::RTPPayloadSender::play(), and inet::rtp::RTPPayloadSender::stop().

135 {
137  ssrc = ssrc_par;
138  encapsulate(msg);
139 }
Definition: RTPInnerPacket_m.h:85
uint32_t ssrc
Definition: RTPInnerPacket_m.h:177
short type
Definition: RTPInnerPacket_m.h:170
void inet::rtp::RTPInnerPacket::setSessionLeftPkt ( )
virtual

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

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

147 {
149 }
Definition: RTPInnerPacket_m.h:87
short type
Definition: RTPInnerPacket_m.h:170

The documentation for this class was generated from the following files: