|
sipxmedialib
Version 3.3
|
Class for RTP stream dispatcher abstraction. More...
#include <MprRtpDispatcher.h>

Classes | |
| struct | MpRtpStream |
| Information, specific for an RTP stream. More... | |
Public Types | |
| enum | RtpStreamAffinity { ADDRESS_AND_PORT, MOST_RECENT_SSRC } |
Protected Attributes | |
| OsMutex | mMutex |
| Mutex to synchronize access to this resource. More... | |
| UtlString | mResourceName |
| MpConnectionID | mConnectionId |
| ConnID to send in event notifications. More... | |
| OsMsgDispatcher * | mpEventMsgQ |
| MsgQ for event notifications. More... | |
| UtlBoolean | mNotificationsEnabled |
| Are notifications enabled? More... | |
| OsTime | mRtpInactiveTime |
| inactive if does not receive RTP packets. More... | |
Static Protected Attributes | |
| static OsTime | smDefaultRtpInactiveTime |
| Default value for mRtpInactiveTime. More... | |
Private Member Functions | |
| MprRtpDispatcher (const MprRtpDispatcher &rMprRtpDispatcher) | |
| Copy constructor (not implemented for this class) More... | |
| MprRtpDispatcher & | operator= (const MprRtpDispatcher &rhs) |
| Assignment operator (not implemented for this class) More... | |
Creators | |
| MprRtpDispatcher (const UtlString &rName, int connectionId) | |
| Constructor. More... | |
| virtual | ~MprRtpDispatcher () |
| Destructor. More... | |
Manipulators | |
| virtual OsStatus | pushPacket (MpRtpBufPtr &pRtp)=0 |
| Dispatch RTP packet. More... | |
| virtual void | checkRtpStreamsActivity ()=0 |
| Check activity of the RTP streams and send notifications if needed. More... | |
| virtual UtlBoolean | connectOutput (int outputIdx, MpResource *pushRtpToResource)=0 |
| Connect output to the given resource. More... | |
| virtual UtlBoolean | disconnectOutput (int outputIdx)=0 |
| Disconnect output from the previously given resource. More... | |
| void | setNotificationDispatcher (OsMsgDispatcher *pMsgQ) |
| Set notification dispatcher. More... | |
| void | setNotificationsEnabled (UtlBoolean enabled) |
| Enable/disable notifications. More... | |
| void | setConnectionId (MpConnectionID connectionId) |
| Set ID of the connection to which this resource belongs. More... | |
| void | setRtpInactivityTimeout (const OsTime &inactiveTime) |
| Set stream activity timeout. More... | |
| static void | setDefaultRtpInactivityTimeout (const OsTime &inactiveTime) |
| Set default stream activity timeout. More... | |
Inquiry | |
| UtlBoolean | areNotificationsEnabled () const |
Class for RTP stream dispatcher abstraction.
| enum RtpStreamAffinity |
| MprRtpDispatcher | ( | const UtlString & | rName, |
| int | connectionId | ||
| ) |
Constructor.
| name | - name of this RTP dispatcher. |
| connectionId | - connection ID to be used in notifications. |
| pMsgQ | - notification dispatcher to send notifications to. |
|
virtual |
Destructor.
|
private |
Copy constructor (not implemented for this class)
|
pure virtual |
Dispatch RTP packet.
Implemented in MprRtpDispatcherActiveSsrcs, and MprRtpDispatcherIpAffinity.
|
pure virtual |
Check activity of the RTP streams and send notifications if needed.
Implemented in MprRtpDispatcherActiveSsrcs, and MprRtpDispatcherIpAffinity.
|
pure virtual |
Connect output to the given resource.
Implemented in MprRtpDispatcherActiveSsrcs, and MprRtpDispatcherIpAffinity.
|
pure virtual |
Disconnect output from the previously given resource.
Implemented in MprRtpDispatcherActiveSsrcs, and MprRtpDispatcherIpAffinity.
|
inline |
Set notification dispatcher.
Set notification dispatcher to NULL to disable notifications.
|
inline |
Enable/disable notifications.
|
inline |
Set ID of the connection to which this resource belongs.
|
inline |
Set stream activity timeout.
Sets time which should pass after last received RTP packet before stream is marked as inactive.
|
inlinestatic |
Set default stream activity timeout.
Sets default time which should pass after last received RTP packet before stream is marked as inactive.
|
inline |
|
private |
Assignment operator (not implemented for this class)
|
protected |
Mutex to synchronize access to this resource.
|
protected |
Name of the owner resource to be used in event notifications.
|
protected |
ConnID to send in event notifications.
|
protected |
MsgQ for event notifications.
|
protected |
Are notifications enabled?
|
protected |
inactive if does not receive RTP packets.
Time after which stream is considered
|
staticprotected |
Default value for mRtpInactiveTime.
Default timeout to mark stream as inactive.
1.8.11