|
Torc
0.1
|
Wraps a TorcQThread around a TorcWebsocket. More...
#include <torcwebsocketthread.h>
Signals | |
| void | ConnectionEstablished (void) |
| void | ConnectionUpgraded (void) |
| void | RemoteRequestSignal (TorcRPCRequest *Request) |
| void | CancelRequestSignal (TorcRPCRequest *Request) |
Signals inherited from TorcQThread | |
| void | Started (void) |
| void | Finished (void) |
Public Member Functions | |
| TorcWebSocketThread (qintptr SocketDescriptor, bool Secure) | |
| TorcWebSocketThread (const QHostAddress &Address, quint16 Port, bool Secure, TorcWebSocketReader::WSSubProtocol Protocol=TorcWebSocketReader::SubProtocolJSONRPC) | |
| ~TorcWebSocketThread ()=default | |
| void | Start (void) override |
| void | Finish (void) override |
| void | RemoteRequest (TorcRPCRequest *Request) |
| void | CancelRequest (TorcRPCRequest *Request) |
| bool | IsSecure (void) |
Public Member Functions inherited from TorcQThread | |
| TorcQThread (const QString &Name) | |
| virtual | ~TorcQThread ()=default |
Additional Inherited Members | |
Static Public Member Functions inherited from TorcQThread | |
| static void | SetMainThread (void) |
| static bool | IsMainThread (void) |
| static void | InitRand (void) |
Protected Member Functions inherited from TorcQThread | |
| virtual void | run (void) |
| void | Initialise (void) |
| Performs Torc specific thread initialisation. More... | |
| void | Deinitialise (void) |
| Performs Torc specific thread cleanup. More... | |
Wraps a TorcQThread around a TorcWebsocket.
A simple wrapper that creates and runs a TorcWebSocket in its own thread and passes through RemoteRequest and CancelRequest calls. TorcWebSocket is parent 'agnostic'.
The two different constructors either upgrade an incoming socket to a WebSocket or create a socket and connect to a remote server.
Definition at line 11 of file torcwebsocketthread.h.
| TorcWebSocketThread::TorcWebSocketThread | ( | qintptr | SocketDescriptor, |
| bool | Secure | ||
| ) |
Definition at line 62 of file torcwebsocketthread.cpp.
| TorcWebSocketThread::TorcWebSocketThread | ( | const QHostAddress & | Address, |
| quint16 | Port, | ||
| bool | Secure, | ||
| TorcWebSocketReader::WSSubProtocol | Protocol = TorcWebSocketReader::SubProtocolJSONRPC |
||
| ) |
Definition at line 73 of file torcwebsocketthread.cpp.
|
default |
| void TorcWebSocketThread::CancelRequest | ( | TorcRPCRequest * | Request | ) |
Definition at line 334 of file torcwebsocketthread.cpp.
|
signal |
|
signal |
|
signal |
|
overridevirtual |
Implements TorcQThread.
Definition at line 317 of file torcwebsocketthread.cpp.
| bool TorcWebSocketThread::IsSecure | ( | void | ) |
Definition at line 324 of file torcwebsocketthread.cpp.
| void TorcWebSocketThread::RemoteRequest | ( | TorcRPCRequest * | Request | ) |
Definition at line 329 of file torcwebsocketthread.cpp.
|
signal |
|
overridevirtual |
Implements TorcQThread.
Definition at line 297 of file torcwebsocketthread.cpp.
1.8.11