|
MythTV
0.27pre
|
#include <mythsocketmanager.h>


Public Slots | |
| void | newConnection (qt_socket_fd_t sd) |
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) |
Public Member Functions inherited from MythSocketCBs | |
| virtual | ~MythSocketCBs () |
| virtual void | error (MythSocket *, int) |
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 |
| QMutex | m_socketListLock |
| QSet< MythSocket * > | m_socketList |
Definition at line 34 of file mythsocketmanager.h.
| MythSocketManager::MythSocketManager | ( | ) |
Definition at line 58 of file mythsocketmanager.cpp.
| MythSocketManager::~MythSocketManager | ( | ) |
Definition at line 63 of file mythsocketmanager.cpp.
|
virtual |
Implements MythSocketCBs.
Definition at line 157 of file mythsocketmanager.cpp.
|
virtual |
Implements MythSocketCBs.
Definition at line 164 of file mythsocketmanager.cpp.
|
inlinevirtual |
Implements MythSocketCBs.
Definition at line 43 of file mythsocketmanager.h.
|
inlinevirtual |
Implements MythSocketCBs.
Definition at line 44 of file mythsocketmanager.h.
| void MythSocketManager::AddSocketHandler | ( | SocketHandler * | socket | ) |
Definition at line 136 of file mythsocketmanager.cpp.
Referenced by OutboundRequestHandler::DoConnectToMaster(), BaseRequestHandler::HandleAnnounce(), and FileServerHandler::HandleAnnounce().
| SocketHandler * MythSocketManager::GetConnectionBySocket | ( | MythSocket * | socket | ) |
Definition at line 146 of file mythsocketmanager.cpp.
Referenced by FileServerHandler::connectionAnnounced(), and ProcessRequestWork().
| void MythSocketManager::ProcessRequest | ( | MythSocket * | socket | ) |
Definition at line 187 of file mythsocketmanager.cpp.
Referenced by ProcessRequestRunnable::run().
| void MythSocketManager::RegisterHandler | ( | SocketRequestHandler * | handler | ) |
Definition at line 116 of file mythsocketmanager.cpp.
Referenced by main().
Definition at line 83 of file mythsocketmanager.cpp.
Referenced by main().
|
slot |
Definition at line 110 of file mythsocketmanager.cpp.
Referenced by Listen().
|
private |
Definition at line 198 of file mythsocketmanager.cpp.
Referenced by ProcessRequest().
|
private |
Definition at line 338 of file mythsocketmanager.cpp.
Referenced by ProcessRequestWork().
|
private |
Definition at line 381 of file mythsocketmanager.cpp.
Referenced by HandleVersion(), and ProcessRequestWork().
|
private |
Definition at line 64 of file mythsocketmanager.h.
Referenced by AddSocketHandler(), connectionClosed(), GetConnectionBySocket(), and ProcessRequestWork().
|
private |
Definition at line 65 of file mythsocketmanager.h.
Referenced by AddSocketHandler(), connectionClosed(), GetConnectionBySocket(), and ProcessRequestWork().
|
private |
Definition at line 67 of file mythsocketmanager.h.
Referenced by connectionClosed(), ProcessRequestWork(), RegisterHandler(), and ~MythSocketManager().
|
private |
Definition at line 68 of file mythsocketmanager.h.
Referenced by connectionClosed(), ProcessRequestWork(), RegisterHandler(), and ~MythSocketManager().
|
private |
Definition at line 70 of file mythsocketmanager.h.
Referenced by Listen().
|
private |
Definition at line 71 of file mythsocketmanager.h.
Referenced by readyRead(), and ~MythSocketManager().
|
private |
Definition at line 73 of file mythsocketmanager.h.
Referenced by newConnection(), and ~MythSocketManager().
|
private |
Definition at line 74 of file mythsocketmanager.h.
Referenced by newConnection(), and ~MythSocketManager().
1.8.1.2