OpalRTPSessionManager Class Reference

#include <rtpconn.h>

List of all members.

Public Member Functions

PMutex & GetMutex ()
virtual bool AllSessionsFailing ()
Construction
 OpalRTPSessionManager (OpalConnection &conn)
 ~OpalRTPSessionManager ()
void operator= (const OpalRTPSessionManager &other)
Operations
void AddSession (RTP_Session *session, const OpalMediaType &mediaType)
void AddMediaSession (OpalMediaSession *session, const OpalMediaType &mediaType)
void ReleaseSession (unsigned sessionID, PBoolean clearAll=PFalse)
RTP_SessionGetSession (unsigned sessionID) const
OpalMediaSessionGetMediaSession (unsigned sessionID) const

Protected Member Functions

 PDICTIONARY (SessionDict, POrdinalKey, OpalMediaSession)

Protected Attributes

OpalConnectionconnection
PMutex m_mutex
SessionDict sessions


Detailed Description

This class manages the RTP sessions for an OpalRTPConnection

Constructor & Destructor Documentation

OpalRTPSessionManager::OpalRTPSessionManager ( OpalConnection conn  ) 

Construct new session manager database.

OpalRTPSessionManager::~OpalRTPSessionManager (  ) 


Member Function Documentation

void OpalRTPSessionManager::operator= ( const OpalRTPSessionManager other  )  [inline]

References sessions.

void OpalRTPSessionManager::AddSession ( RTP_Session session,
const OpalMediaType mediaType 
)

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

void OpalRTPSessionManager::AddMediaSession ( OpalMediaSession session,
const OpalMediaType mediaType 
)

Parameters:
session  Session to add.
mediaType  initial media type for this session

void OpalRTPSessionManager::ReleaseSession ( unsigned  sessionID,
PBoolean  clearAll = PFalse 
)

Release the session.

Parameters:
sessionID  Session ID to release.
clearAll  Clear all sessions with that ID

RTP_Session* OpalRTPSessionManager::GetSession ( unsigned  sessionID  )  const

Get a session for the specified ID.

Parameters:
sessionID  Session ID to get.

OpalMediaSession* OpalRTPSessionManager::GetMediaSession ( unsigned  sessionID  )  const

PMutex& OpalRTPSessionManager::GetMutex (  )  [inline]

References m_mutex.

virtual bool OpalRTPSessionManager::AllSessionsFailing (  )  [virtual]

OpalRTPSessionManager::PDICTIONARY ( SessionDict  ,
POrdinalKey  ,
OpalMediaSession   
) [protected]


Member Data Documentation

PMutex OpalRTPSessionManager::m_mutex [protected]

Referenced by GetMutex().

SessionDict OpalRTPSessionManager::sessions [protected]

Referenced by operator=().


The documentation for this class was generated from the following file:

Generated on Fri Dec 11 06:24:15 2009 for OPAL by  doxygen 1.5.6