MythSocketManager Class Reference

#include <mythsocketmanager.h>

Inheritance diagram for MythSocketManager:
MythSocketCBs

List of all members.

Public Slots

void newConnection (MythSocket *socket)

Public Member Functions

 MythSocketManager ()
 ~MythSocketManager ()
void readyRead (MythSocket *socket)
void connectionClosed (MythSocket *socket)
void connectionFailed (MythSocket *socket)
void connected (MythSocket *socket)
void SetThreadCount (uint count)
void AddSocketHandler (SocketHandler *socket)
SocketHandlerGetConnectionBySocket (MythSocket *socket)
void ProcessRequest (MythSocket *socket)
void RegisterHandler (SocketRequestHandler *handler)
bool Listen (int port)

Private Member Functions

void ProcessRequestWork (MythSocket *socket)
void HandleVersion (MythSocket *socket, const QStringList slist)
void HandleDone (MythSocket *socket)

Private Attributes

QMap< MythSocket
*, SocketHandler * > 
m_socketMap
QReadWriteLock m_socketLock
QMap< QString,
SocketRequestHandler * > 
m_handlerMap
QReadWriteLock m_handlerLock
MythServerm_server
MThreadPool m_threadPool

Detailed Description

Definition at line 33 of file mythsocketmanager.h.


Constructor & Destructor Documentation

MythSocketManager::MythSocketManager (  ) 

Definition at line 60 of file mythsocketmanager.cpp.

MythSocketManager::~MythSocketManager (  ) 

Definition at line 65 of file mythsocketmanager.cpp.


Member Function Documentation

void MythSocketManager::readyRead ( MythSocket socket  )  [virtual]

Implements MythSocketCBs.

Definition at line 141 of file mythsocketmanager.cpp.

void MythSocketManager::connectionClosed ( MythSocket socket  )  [virtual]

Implements MythSocketCBs.

Definition at line 154 of file mythsocketmanager.cpp.

void MythSocketManager::connectionFailed ( MythSocket socket  )  [inline, virtual]

Implements MythSocketCBs.

Definition at line 42 of file mythsocketmanager.h.

void MythSocketManager::connected ( MythSocket socket  )  [inline, virtual]

Implements MythSocketCBs.

Definition at line 43 of file mythsocketmanager.h.

void MythSocketManager::SetThreadCount ( uint  count  ) 
void MythSocketManager::AddSocketHandler ( SocketHandler socket  ) 
SocketHandler * MythSocketManager::GetConnectionBySocket ( MythSocket socket  ) 
void MythSocketManager::ProcessRequest ( MythSocket socket  ) 

Definition at line 174 of file mythsocketmanager.cpp.

Referenced by ProcessRequestRunnable::run().

void MythSocketManager::RegisterHandler ( SocketRequestHandler handler  ) 

Definition at line 100 of file mythsocketmanager.cpp.

Referenced by main().

bool MythSocketManager::Listen ( int  port  ) 

Definition at line 78 of file mythsocketmanager.cpp.

Referenced by main().

void MythSocketManager::newConnection ( MythSocket socket  )  [inline, slot]

Definition at line 56 of file mythsocketmanager.h.

Referenced by OutboundRequestHandler::DoConnectToMaster(), and Listen().

void MythSocketManager::ProcessRequestWork ( MythSocket socket  )  [private]

Definition at line 192 of file mythsocketmanager.cpp.

Referenced by ProcessRequest().

void MythSocketManager::HandleVersion ( MythSocket socket,
const QStringList  slist 
) [private]

Definition at line 332 of file mythsocketmanager.cpp.

Referenced by ProcessRequestWork().

void MythSocketManager::HandleDone ( MythSocket socket  )  [private]

Definition at line 375 of file mythsocketmanager.cpp.

Referenced by HandleVersion(), and ProcessRequestWork().


Member Data Documentation

QReadWriteLock MythSocketManager::m_socketLock [private]
QReadWriteLock MythSocketManager::m_handlerLock [private]

Definition at line 69 of file mythsocketmanager.h.

Referenced by Listen().

Definition at line 70 of file mythsocketmanager.h.

Referenced by readyRead(), and ~MythSocketManager().


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends
Generated on Fri May 25 06:42:15 2012 for MythTV by  doxygen 1.6.3