The WebSocket server, which listens for connections.
More...
#include <libmythupnp/websocket.h>
|
| | WebSocketServer () |
| |
| | ~WebSocketServer () override |
| |
| bool | IsRunning (void) const |
| |
| | 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...
|
| |
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::WebSocketServer |
( |
| ) |
|
◆ ~WebSocketServer()
| WebSocketServer::~WebSocketServer |
( |
| ) |
|
|
override |
◆ IsRunning()
| bool WebSocketServer::IsRunning |
( |
void |
| ) |
const |
|
inline |
◆ newTcpConnection
| void WebSocketServer::newTcpConnection |
( |
qintptr |
socket | ) |
|
|
overrideprotectedslot |
◆ m_running
| bool WebSocketServer::m_running {true} |
|
protected |
◆ m_rwlock
| QReadWriteLock WebSocketServer::m_rwlock |
|
mutableprotected |
◆ m_sslConfig
| QSslConfiguration WebSocketServer::m_sslConfig |
|
protected |
◆ m_threadPool
The documentation for this class was generated from the following files: