sipxmedialib  Version 3.3
Public Types | Private Member Functions | Private Attributes | List of all members
MprToNet Class Reference

The RTP writer. More...

#include <MprToNet.h>

Collaboration diagram for MprToNet:
Collaboration graph
[legend]

Public Types

enum  { RESERVED_RTP_PACKET_HEADER_BYTES = 76 }
 
enum  { MPRM_SET_SR_ADJUST_USECS = MpResourceMsg::MPRM_EXTERNAL_MESSAGE_START }
 

Public Member Functions

Creators
 MprToNet ()
 Constructor. More...
 
virtual ~MprToNet ()
 Destructor. More...
 
Accessors
OsStatus setFlowGraph (MpFlowGraphBase *flowgraph)
 Set flowgraph in which this is used for debug purposes. More...
 
void setSSRC (ssrc_t iSSRC)
 
RtpSRC getSSRC () const
 

Private Member Functions

 MprToNet (const MprToNet &rMprToNet)
 Copy constructor (not implemented for this class) More...
 
MprToNetoperator= (const MprToNet &rhs)
 Assignment operator (not implemented for this class) More...
 

Private Attributes

MprFromNetmpFromNetPal
 
MpFlowGraphBasempFlowGraph
 for debug purposes More...
 
int mRtcpPackets
 
int mRtcpFrameCount
 
int mRtcpFrameLimit
 
unsigned int mTimestampDelta
 
unsigned int mSeqNum
 
unsigned int mSSRC
 
OsSocket * mpRtpSocket
 
OsSocket * mpRtcpSocket
 
int mNumRtpWriteErrors
 
int mNumRtcpWriteErrors
 
int mSRAdjustUSecs
 

Manipulators

OsStatus setSockets (OsSocket &rRtpSocket, OsSocket &rRtcpSocket)
 Set the outbound RTP and RTCP sockets. More...
 
OsStatus resetSockets ()
 Clear the outbound RTP and RTCP sockets. More...
 
OsStatus setRtpPal (MprFromNet *pal)
 Connect us to our corresponding FromNet, for RTCP stats. More...
 
virtual int writeRtp (int payloadType, UtlBoolean markerState, const unsigned char *payloadData, int payloadOctets, unsigned int timestamp, void *csrcList)
 
void setSRAdjustUSecs (int iUSecs)
 
static OsStatus setSRAdjustUSecs (const UtlString &namedResource, OsMsgQ &fgQ, int adjustUSecs)
 

Detailed Description

The RTP writer.

Member Enumeration Documentation

anonymous enum
Enumerator
RESERVED_RTP_PACKET_HEADER_BYTES 

76 = 4 for encryption prefix +
12 for basic packet header +
15*4 for CSRC list

anonymous enum
Enumerator
MPRM_SET_SR_ADJUST_USECS 

Constructor & Destructor Documentation

MprToNet ( )

Constructor.

~MprToNet ( )
virtual

Destructor.

MprToNet ( const MprToNet rMprToNet)
private

Copy constructor (not implemented for this class)

Member Function Documentation

OsStatus setSockets ( OsSocket &  rRtpSocket,
OsSocket &  rRtcpSocket 
)

Set the outbound RTP and RTCP sockets.

Returns
Always OS_SUCCESS for now.
OsStatus resetSockets ( void  )

Clear the outbound RTP and RTCP sockets.

Returns
Always OS_SUCCESS for now.
OsStatus setRtpPal ( MprFromNet pal)

Connect us to our corresponding FromNet, for RTCP stats.

int writeRtp ( int  payloadType,
UtlBoolean  markerState,
const unsigned char *  payloadData,
int  payloadOctets,
unsigned int  timestamp,
void *  csrcList 
)
virtual
void setSRAdjustUSecs ( int  iUSecs)
OsStatus setSRAdjustUSecs ( const UtlString &  namedResource,
OsMsgQ &  fgQ,
int  adjustUSecs 
)
static
OsStatus setFlowGraph ( MpFlowGraphBase flowgraph)

Set flowgraph in which this is used for debug purposes.

void setSSRC ( ssrc_t  iSSRC)
RtpSRC getSSRC ( ) const
inline
MprToNet& operator= ( const MprToNet rhs)
private

Assignment operator (not implemented for this class)

Member Data Documentation

MprFromNet* mpFromNetPal
private
MpFlowGraphBase* mpFlowGraph
private

for debug purposes

int mRtcpPackets
private
int mRtcpFrameCount
private
int mRtcpFrameLimit
private
unsigned int mTimestampDelta
private
unsigned int mSeqNum
private
unsigned int mSSRC
private
OsSocket* mpRtpSocket
private
OsSocket* mpRtcpSocket
private
int mNumRtpWriteErrors
private
int mNumRtcpWriteErrors
private
int mSRAdjustUSecs
private