21 #define ENABLE_PACKET_HACKING 22 #undef ENABLE_PACKET_HACKING 27 #include "os/OsSocket.h" 63 #ifdef ENABLE_PACKET_HACKING 89 OsStatus
setSockets(OsSocket& rRtpSocket, OsSocket& rRtcpSocket);
103 virtual int writeRtp(
int payloadType, UtlBoolean markerState,
104 const unsigned char* payloadData,
int payloadOctets,
unsigned int timestamp,
111 static OsStatus
setSRAdjustUSecs(
const UtlString& namedResource, OsMsgQ& fgQ,
int adjustUSecs);
125 void setRTPAccumulator(ISetSenderStatistics *piRTPAccumulator);
147 unsigned int mRtpSampleCounter;
159 #ifdef ENABLE_PACKET_HACKING 160 void adjustRtpPacket(
struct RtpHeader* p);
164 ISetSenderStatistics *mpiRTPAccumulator;
185 #endif // _MprToNet_h_ OsStatus resetSockets()
Clear the outbound RTP and RTCP sockets.
Definition: MprToNet.cpp:128
Definition: MpResourceMsg.h:56
int mNumRtcpWriteErrors
Definition: MprToNet.h:157
MprToNet & operator=(const MprToNet &rhs)
Assignment operator (not implemented for this class)
Definition: MprToNet.h:53
int mNumRtpWriteErrors
Definition: MprToNet.h:156
Flow graph for coordinating the execution of media processing resources.
Definition: MpFlowGraphBase.h:91
void setSRAdjustUSecs(int iUSecs)
Definition: MprToNet.cpp:380
MprToNet()
Constructor.
Definition: MprToNet.cpp:70
unsigned int mSeqNum
Definition: MprToNet.h:152
OsSocket * mpRtpSocket
Definition: MprToNet.h:154
int mRtcpFrameCount
Definition: MprToNet.h:144
unsigned int mSSRC
Definition: MprToNet.h:153
MprFromNet * mpFromNetPal
Definition: MprToNet.h:141
OsSocket * mpRtcpSocket
Definition: MprToNet.h:155
int mRtcpFrameLimit
Definition: MprToNet.h:145
void setSSRC(ssrc_t iSSRC)
Definition: MprToNet.cpp:136
OsStatus setSockets(OsSocket &rRtpSocket, OsSocket &rRtcpSocket)
Set the outbound RTP and RTCP sockets.
Definition: MprToNet.cpp:119
uint32_t ssrc_t
Definition: RtcpConfig.h:62
OsStatus setRtpPal(MprFromNet *pal)
Connect us to our corresponding FromNet, for RTCP stats.
Definition: MprToNet.cpp:408
The "From Network" media processing resource.
Definition: MprFromNet.h:55
The RTP writer.
Definition: MprToNet.h:48
RtpSRC getSSRC() const
Definition: MprToNet.h:180
OsStatus setFlowGraph(MpFlowGraphBase *flowgraph)
Set flowgraph in which this is used for debug purposes.
Definition: MprToNet.cpp:401
int mRtcpPackets
Definition: MprToNet.h:143
uint32_t RtpSRC
RTP SSRC or CSRC identifier.
Definition: MpTypes.h:61
virtual ~MprToNet()
Destructor.
Definition: MprToNet.cpp:94
virtual int writeRtp(int payloadType, UtlBoolean markerState, const unsigned char *payloadData, int payloadOctets, unsigned int timestamp, void *csrcList)
Definition: MprToNet.cpp:184
int mSRAdjustUSecs
Definition: MprToNet.h:168
unsigned int mTimestampDelta
Definition: MprToNet.h:151
Definition: MprToNet.h:60
MpFlowGraphBase * mpFlowGraph
for debug purposes
Definition: MprToNet.h:142