#include <rtpconn.h>
This class manages the RTP sessions for an OpalRTPConnection
◆ OpalRTPSessionManager() [1/2]
Construct new session manager database.
- Parameters
-
connection | Owner connection for RTP sessions |
◆ ~OpalRTPSessionManager()
OpalRTPSessionManager::~OpalRTPSessionManager |
( |
| ) |
|
Destroy sessions, unlinking from connection.
◆ OpalRTPSessionManager() [2/2]
◆ AddMediaSession()
- Parameters
-
session | Session to add. |
mediaType | initial media type for this session |
◆ AddSession()
Add an RTP session for the specified ID.
This function MUST be called only after the UseSession() function has returned NULL. The mutex flag is left locked in that case. This function expects the mutex to be locked and unlocks it automatically.
- Parameters
-
session | Session to add. |
mediaType | initial media type for this session |
◆ AllSessionsFailing()
virtual bool OpalRTPSessionManager::AllSessionsFailing |
( |
| ) |
|
|
virtual |
◆ ChangeSessionID()
bool OpalRTPSessionManager::ChangeSessionID |
( |
unsigned |
fromSessionID, |
|
|
unsigned |
toSessionID |
|
) |
| |
Change the sessionID for an existing session. This will adjust the RTP session and media streams.
Return false if no such session exists.
- Parameters
-
fromSessionID | Session ID to search for |
toSessionID | Session ID to change to |
◆ CloseSession()
virtual void OpalRTPSessionManager::CloseSession |
( |
unsigned |
sessionID | ) |
|
|
virtual |
Release the session.
- Parameters
-
sessionID | Session ID to release, 0 indicates all |
◆ GetMediaSession()
OpalMediaSession* OpalRTPSessionManager::GetMediaSession |
( |
unsigned |
sessionID | ) |
const |
◆ GetMutex()
PMutex& OpalRTPSessionManager::GetMutex |
( |
| ) |
|
|
inline |
◆ GetNextSessionID()
unsigned OpalRTPSessionManager::GetNextSessionID |
( |
| ) |
|
Get next available session ID for the media type.
◆ GetSession()
RTP_Session* OpalRTPSessionManager::GetSession |
( |
unsigned |
sessionID | ) |
const |
Get a session for the specified ID.
- Parameters
-
sessionID | Session ID to get. |
◆ operator=()
Assignment of RTP session managers.
References sessions.
◆ PDICTIONARY()
OpalRTPSessionManager::PDICTIONARY |
( |
SessionDict |
, |
|
|
POrdinalKey |
, |
|
|
OpalMediaSession |
|
|
) |
| |
|
protected |
◆ m_connection
◆ m_mutex
PMutex OpalRTPSessionManager::m_mutex |
|
protected |
◆ sessions
SessionDict OpalRTPSessionManager::sessions |
|
protected |
The documentation for this class was generated from the following file: