|
MythTV master
|
The WebSocket server, which listens for connections. More...
#include <libmythupnp/websocket.h>
Public Member Functions | |
| WebSocketServer () | |
| ~WebSocketServer () override | |
| bool | IsRunning (void) const |
Public Member Functions inherited from ServerPool | |
| ServerPool (QObject *parent=nullptr) | |
| ~ServerPool (void) override | |
| bool | listen (QList< QHostAddress > addrs, quint16 port, bool requireall=true, PoolServerType type=kTCPServer) |
| bool | listen (QStringList addrs, quint16 port, bool requireall=true, PoolServerType type=kTCPServer) |
| bool | listen (quint16 port, bool requireall=true, PoolServerType type=kTCPServer) |
| bool | bind (QList< QHostAddress > addrs, quint16 port, bool requireall=true) |
| bool | bind (QStringList addrs, quint16 port, bool requireall=true) |
| bool | bind (quint16 port, bool requireall=true) |
| qint64 | writeDatagram (const char *data, qint64 size, const QHostAddress &addr, quint16 port) |
| qint64 | writeDatagram (const QByteArray &datagram, const QHostAddress &addr, quint16 port) |
| bool | isListening (void) const |
| int | maxPendingConnections (void) const |
| void | setMaxPendingConnections (int n) |
| quint16 | serverPort (void) const |
| QNetworkProxy | proxy (void) |
| void | setProxy (const QNetworkProxy &proxy) |
| void | close (void) |
| int | tryListeningPort (int baseport, int range=1) |
| tryListeningPort More... | |
| int | tryBindingPort (int baseport, int range=1) |
| tryBindingPort More... | |
Protected Slots | |
| void | newTcpConnection (qintptr socket) override |
Protected Slots inherited from ServerPool | |
| virtual void | newUdpDatagram (void) |
| virtual void | newTcpConnection (qintptr socket) |
Protected Attributes | |
| QReadWriteLock | m_rwlock |
| MThreadPool | m_threadPool |
| bool | m_running {true} |
| QSslConfiguration | m_sslConfig |
Additional Inherited Members | |
Signals inherited from ServerPool | |
| void | newConnection (QTcpSocket *) |
| void | newDatagram (QByteArray, QHostAddress, quint16) |
Static Public Member Functions inherited from ServerPool | |
| static void | RefreshDefaultListen (void) |
| static QList< QHostAddress > | DefaultListen (void) |
| static QList< QHostAddress > | DefaultListenIPv4 (void) |
| static QList< QHostAddress > | DefaultListenIPv6 (void) |
| static QList< QHostAddress > | DefaultBroadcast (void) |
| static QList< QHostAddress > | DefaultBroadcastIPv4 (void) |
| static QList< QHostAddress > | DefaultBroadcastIPv6 (void) |
| static int | tryListeningPort (QTcpServer *server, int baseport, int range=1, bool *isipv6=nullptr) |
| tryListeningPort More... | |
| static int | tryBindingPort (QUdpSocket *socket, int baseport, int range=1, bool *isipv6=nullptr) |
| tryBindingPort More... | |
The WebSocket server, which listens for connections.
When WebSocketServer receives a connection it hands it off to a new instance of WebSocketWorker which runs it it's own thread, WebSocketWorkerThread
Definition at line 38 of file websocket.h.
| WebSocketServer::WebSocketServer | ( | ) |
Definition at line 28 of file websocket.cpp.
|
override |
Definition at line 43 of file websocket.cpp.
|
inline |
Definition at line 46 of file websocket.h.
Referenced by WebSocketWorker::CleanupSocket(), and WebSocketWorker::doRead().
|
overrideprotectedslot |
Definition at line 52 of file websocket.cpp.
Definition at line 60 of file websocket.h.
Referenced by ~WebSocketServer().
|
mutableprotected |
Definition at line 58 of file websocket.h.
Referenced by ~WebSocketServer().
|
protected |
Definition at line 63 of file websocket.h.
Referenced by newTcpConnection().
|
protected |
Definition at line 59 of file websocket.h.
Referenced by newTcpConnection(), WebSocketServer(), and ~WebSocketServer().