OPAL
Version 3.14.3
|
#include <msrp.h>
Inherits PObject.
Data Structures | |
class | Connection |
struct | IncomingMSRP |
Public Types | |
enum | { DefaultPort = 2855 } |
typedef PNotifierTemplate < IncomingMSRP & > | CallBack |
Public Member Functions | |
OpalMSRPManager (OpalManager &opal, WORD port=DefaultPort) | |
~OpalMSRPManager () | |
bool | GetLocalPort (WORD &port) |
PSafePtr< Connection > | OpenConnection (const PURL &localURL, const PURL &remoteURL) |
bool | CloseConnection (PSafePtr< OpalMSRPManager::Connection > &connection) |
std::string | CreateSessionID () |
PURL | SessionIDToURL (const OpalTransportAddress &addr, const std::string &id) |
void | ListenerThread () |
void | DispatchMessage (IncomingMSRP &incomingMsg) |
void | SetNotifier (const PURL &localUrl, const PURL &remoteURL, const CallBack ¬ifier) |
void | RemoveNotifier (const PURL &localUrl, const PURL &remoteURL) |
OpalManager & | GetOpalManager () |
Protected Types | |
typedef std::map< PString, PSafePtr< Connection > > | ConnectionInfoMapType |
typedef std::map< PString, CallBack > | CallBackMap |
Protected Attributes | |
OpalManager & | opalManager |
WORD | m_listenerPort |
PMutex | mutex |
PAtomicInteger | lastID |
PTCPSocket | m_listenerSocket |
PThread * | m_listenerThread |
PMutex | m_connectionInfoMapAddMutex |
ConnectionInfoMapType | m_connectionInfoMap |
CallBackMap | m_callBacks |
PMutex | m_callBacksMutex |
typedef PNotifierTemplate<IncomingMSRP &> OpalMSRPManager::CallBack |
|
protected |
|
protected |
OpalMSRPManager::OpalMSRPManager | ( | OpalManager & | opal, |
WORD | port = DefaultPort |
||
) |
OpalMSRPManager::~OpalMSRPManager | ( | ) |
bool OpalMSRPManager::CloseConnection | ( | PSafePtr< OpalMSRPManager::Connection > & | connection | ) |
std::string OpalMSRPManager::CreateSessionID | ( | ) |
void OpalMSRPManager::DispatchMessage | ( | IncomingMSRP & | incomingMsg | ) |
bool OpalMSRPManager::GetLocalPort | ( | WORD & | port | ) |
|
inline |
References opalManager.
void OpalMSRPManager::ListenerThread | ( | ) |
PSafePtr<Connection> OpalMSRPManager::OpenConnection | ( | const PURL & | localURL, |
const PURL & | remoteURL | ||
) |
void OpalMSRPManager::RemoveNotifier | ( | const PURL & | localUrl, |
const PURL & | remoteURL | ||
) |
PURL OpalMSRPManager::SessionIDToURL | ( | const OpalTransportAddress & | addr, |
const std::string & | id | ||
) |
void OpalMSRPManager::SetNotifier | ( | const PURL & | localUrl, |
const PURL & | remoteURL, | ||
const CallBack & | notifier | ||
) |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
Referenced by GetOpalManager().