|
sipxmedialib
Version 3.3
|
The "From Network" media processing resource. More...
#include <MprFromNet.h>

Public Member Functions | |
Creators | |
| MprFromNet () | |
| Constructor. More... | |
| virtual | ~MprFromNet () |
| Destructor. More... | |
Accessors | |
| OsStatus | getRtcpStats (MprRtcpStats &stats) |
| retrieve the RR info needed to complete an RTCP packet More... | |
| OsStatus | setFlowGraph (MpFlowGraphBase *flowgraph) |
Private Member Functions | |
| OsStatus | rtcpStats (struct RtpHeader *h) |
| Update the RR info for the current incoming packet. More... | |
| UtlBoolean | resetSocketsInternal (OsEvent *pEvent=NULL) |
| Unregister the inbound RTP and RTCP sockets. More... | |
| MprFromNet (const MprFromNet &rMprFromNet) | |
| Copy constructor (not implemented for this class) More... | |
| MprFromNet & | operator= (const MprFromNet &rhs) |
| Assignment operator (not implemented for this class) More... | |
Static Private Member Functions | |
| static MpRtpBufPtr | parseRtpPacket (const MpUdpBufPtr &buf) |
| Parse UDP packet and return filled RTP packet buffer. More... | |
Private Attributes | |
| OsMutex | mDiscardCtlMutex |
| OsMutex | mRegistrationSyncMutex |
| NetInTask * | mNetInTask |
| UtlBoolean | mRegistered |
| MprRtpDispatcher * | mpRtpDispatcher |
| UtlBoolean | mDiscardSelectedStream |
| RtpSRC | mDiscardedSSRC |
| MpFlowGraphBase * | mpFlowGraph |
| rtpHandle | mInRtpHandle |
| int | mRtcpCount |
| int | mNumPushed |
| Total RTP+RTCP pkts received from NetIn. More... | |
| int | mNumPktsRtcp |
| Total RTCP packets received from NetIn. More... | |
| int | mNumPktsRtp |
| Total RTP packets received from NetIn. More... | |
| int | mNumEncDropped |
| Encoded RTP packets dropped due to no key. More... | |
| int | mNumLoopDropped |
| Looped-back mcast RTP packets dropped. More... | |
Manipulators | |
| UtlBoolean | handleMessage (MpResourceMsg &rMsg) |
| Handle message to manipulate this. More... | |
| OsStatus | setSockets (OsSocket &rRtpSocket, OsSocket &rRtcpSocket) |
| Set the inbound RTP and RTCP sockets. More... | |
| OsStatus | resetSockets () |
| Unregister the inbound RTP and RTCP sockets. More... | |
| OsStatus | pushPacket (const MpUdpBufPtr &buf, bool isRtcp) |
| Take in a buffer from the NetIn task. More... | |
| OsStatus | enableSsrcDiscard (UtlBoolean enable, RtpSRC ssrc) |
| Enable/disable discarding of given RTP stream. More... | |
| OsStatus | setRtpDispatcher (MprRtpDispatcher *pRtpDispatcher) |
| Set RTP dispatcher instance. More... | |
| static OsStatus | setSockets (const UtlString &resourceName, OsMsgQ &flowgraphMessageQueue, OsSocket *rtpSocket, OsSocket *rtcpSocket) |
| send a message to a resource containing a MprFromNet to set sockets More... | |
| static OsStatus | resetSockets (const UtlString &resourceName, OsMsgQ &flowgraphMessageQueue) |
| send a message to a resource containing a MprFromNet to reset sockets More... | |
The "From Network" media processing resource.
| MprFromNet | ( | ) |
Constructor.
|
virtual |
Destructor.
|
private |
Copy constructor (not implemented for this class)
| UtlBoolean handleMessage | ( | MpResourceMsg & | rMsg | ) |
Handle message to manipulate this.
|
static |
send a message to a resource containing a MprFromNet to set sockets
| OsStatus setSockets | ( | OsSocket & | rRtpSocket, |
| OsSocket & | rRtcpSocket | ||
| ) |
Set the inbound RTP and RTCP sockets.
|
static |
send a message to a resource containing a MprFromNet to reset sockets
| OsStatus resetSockets | ( | ) |
Unregister the inbound RTP and RTCP sockets.
| OsStatus pushPacket | ( | const MpUdpBufPtr & | buf, |
| bool | isRtcp | ||
| ) |
Take in a buffer from the NetIn task.
| OsStatus enableSsrcDiscard | ( | UtlBoolean | enable, |
| RtpSRC | ssrc | ||
| ) |
Enable/disable discarding of given RTP stream.
| [in] | enable | - should given stream be discarded or not. |
| [in] | ssrc | - SSRC of the stream to discard. If enable is FALSE, then ssrc is ignored. |
| OsStatus setRtpDispatcher | ( | MprRtpDispatcher * | pRtpDispatcher | ) |
Set RTP dispatcher instance.
| OsStatus getRtcpStats | ( | MprRtcpStats & | stats | ) |
retrieve the RR info needed to complete an RTCP packet
| OsStatus setFlowGraph | ( | MpFlowGraphBase * | flowgraph | ) |
|
private |
Update the RR info for the current incoming packet.
|
private |
Unregister the inbound RTP and RTCP sockets.
| TRUE | - operation have been performed, caller can wait for pEvent to be signaled |
| FALSE | - operation havn't been performed and pEvent will never be signaled. |
|
staticprivate |
Parse UDP packet and return filled RTP packet buffer.
|
private |
Assignment operator (not implemented for this class)
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
Total RTP+RTCP pkts received from NetIn.
|
private |
Total RTCP packets received from NetIn.
|
private |
Total RTP packets received from NetIn.
|
private |
Encoded RTP packets dropped due to no key.
|
private |
Looped-back mcast RTP packets dropped.
1.8.11