#include <mythsocketmanager.h>
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) |
| SocketHandler * | GetConnectionBySocket (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 |
| MythServer * | m_server |
| MThreadPool | m_threadPool |
Definition at line 33 of file mythsocketmanager.h.
| MythSocketManager::MythSocketManager | ( | ) |
Definition at line 60 of file mythsocketmanager.cpp.
| MythSocketManager::~MythSocketManager | ( | ) |
Definition at line 65 of file mythsocketmanager.cpp.
| 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 | ) |
Definition at line 120 of file mythsocketmanager.cpp.
Referenced by OutboundRequestHandler::DoConnectToMaster(), FileServerHandler::HandleAnnounce(), and BaseRequestHandler::HandleAnnounce().
| SocketHandler * MythSocketManager::GetConnectionBySocket | ( | MythSocket * | socket | ) |
Definition at line 130 of file mythsocketmanager.cpp.
Referenced by FileServerHandler::connectionAnnounced(), and ProcessRequestWork().
| 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().
QMap<MythSocket*, SocketHandler*> MythSocketManager::m_socketMap [private] |
Definition at line 63 of file mythsocketmanager.h.
Referenced by AddSocketHandler(), connectionClosed(), GetConnectionBySocket(), and ProcessRequestWork().
QReadWriteLock MythSocketManager::m_socketLock [private] |
Definition at line 64 of file mythsocketmanager.h.
Referenced by AddSocketHandler(), connectionClosed(), GetConnectionBySocket(), and ProcessRequestWork().
QMap<QString, SocketRequestHandler*> MythSocketManager::m_handlerMap [private] |
Definition at line 66 of file mythsocketmanager.h.
Referenced by connectionClosed(), ProcessRequestWork(), RegisterHandler(), and ~MythSocketManager().
QReadWriteLock MythSocketManager::m_handlerLock [private] |
Definition at line 67 of file mythsocketmanager.h.
Referenced by connectionClosed(), ProcessRequestWork(), RegisterHandler(), and ~MythSocketManager().
MythServer* MythSocketManager::m_server [private] |
Definition at line 69 of file mythsocketmanager.h.
Referenced by Listen().
MThreadPool MythSocketManager::m_threadPool [private] |
Definition at line 70 of file mythsocketmanager.h.
Referenced by readyRead(), and ~MythSocketManager().
1.6.3