MythTV  0.26-pre
Public Slots | Public Member Functions | Private Member Functions | Private Attributes
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

Definition at line 60 of file mythsocketmanager.cpp.

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.

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.

Definition at line 120 of file mythsocketmanager.cpp.

Referenced by OutboundRequestHandler::DoConnectToMaster().

Definition at line 130 of file mythsocketmanager.cpp.

Referenced by ProcessRequestWork().

Definition at line 174 of file mythsocketmanager.cpp.

Definition at line 100 of file mythsocketmanager.cpp.

Referenced by main().

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().

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().

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