11 #ifndef _MprRtpStartReceiveMsg_h_ 12 #define _MprRtpStartReceiveMsg_h_ 18 #include "sdp/SdpCodec.h" 45 OsSocket& rRtcpSocket)
52 assert(numCodecs > 0);
57 for(codecIndex = 0; codecIndex < numCodecs; codecIndex++)
59 if(codecs[codecIndex])
62 new SdpCodec(*(codecs[codecIndex]));
68 assert(codecs[codecIndex] != NULL);
89 for(codecIndex = 0; codecIndex < resourceMsg.
mNumCodecs; codecIndex++)
99 assert(resourceMsg.
mpCodecs[codecIndex] != NULL);
119 for(codecIndex = 0; codecIndex <
mNumCodecs; codecIndex++)
155 if(mNumCodecs < rhs.mNumCodecs && rhs.mNumCodecs > 0)
157 SdpCodec** tempCodecArray =
mpCodecs;
161 for(codecIndex = 0; codecIndex <
mNumCodecs; codecIndex++)
163 mpCodecs[codecIndex] = tempCodecArray[codecIndex];
164 tempCodecArray[codecIndex] = NULL;
166 delete[] tempCodecArray;
167 tempCodecArray = NULL;
171 for(codecIndex = 0; codecIndex < rhs.
mNumCodecs; codecIndex++)
225 #endif // _MprRtpStartReceiveMsg_h_ MpResourceMsg & operator=(const MpResourceMsg &rhs)
Assignment operator.
Definition: MpResourceMsg.cpp:60
Message object used to communicate with the media processing task.
Definition: MpResourceMsg.h:30
int mNumCodecs
Definition: MprRtpStartReceiveMsg.h:218
OsSocket * mpRtcpSocket
Definition: MprRtpStartReceiveMsg.h:220
OsMsg * createCopy(void) const
Create a copy of this msg object (which may be of a derived type)
Definition: MprRtpStartReceiveMsg.h:108
Message object used to communicate with the media processing task.
Definition: MprRtpStartReceiveMsg.h:31
MprRtpStartReceiveMsg(const MprRtpStartReceiveMsg &resourceMsg)
Copy constructor.
Definition: MprRtpStartReceiveMsg.h:77
OsSocket * mpRtpSocket
Definition: MprRtpStartReceiveMsg.h:219
OsSocket * getRtcpSocket()
Definition: MprRtpStartReceiveMsg.h:202
void getCodecArray(int &codecCount, SdpCodec **&codecs)
Definition: MprRtpStartReceiveMsg.h:194
MprRtpStartReceiveMsg(const UtlString &targetResourceName, SdpCodec *codecs[], int numCodecs, OsSocket &rRtpSocket, OsSocket &rRtcpSocket)
Constructor.
Definition: MprRtpStartReceiveMsg.h:41
SdpCodec ** mpCodecs
Definition: MprRtpStartReceiveMsg.h:217
MprRtpStartReceiveMsg & operator=(const MprRtpStartReceiveMsg &rhs)
Assignment operator.
Definition: MprRtpStartReceiveMsg.h:139
~MprRtpStartReceiveMsg()
Destructor.
Definition: MprRtpStartReceiveMsg.h:114
OsSocket * getRtpSocket()
Definition: MprRtpStartReceiveMsg.h:200