API Documentation
|
#include <WebSocketConnection.h>
Public Member Functions | |
WebSocketConnection (ProgressInfo *log) | |
~WebSocketConnection () | |
virtual uint04 | peek (char *, uint04 size) const override |
virtual uint04 | rx (char *, uint04 size=Constant< uint04 >::Max) override |
virtual void | tx (const String &command) override |
virtual bool | open (const ConnectionInfo &request) override |
virtual void | close () override |
virtual bool | isOpen () const override |
virtual uint04 | bytesAvailable () const override |
virtual TranslatedString | lastError () const override |
virtual bool | setPort (QWebSocket *tcp_port) |
virtual bool | waitForReadyRead (const TimeSpan &span) override |
virtual bool | waitForConnection (QWebSocket *socket, const ConnectionInfo &request) |
void | setSocket (QWebSocket *socket) |
Public Member Functions inherited from ConnectionBackend | |
ConnectionBackend (ProgressInfo *log) | |
virtual String | threadID () const |
Protected Slots | |
void | handleSocketErrorSlot (int error) |
void | binaryMessageRecieved (const QByteArray &array) |
void | textMessageRecieved (const QString &message) |
Protected Attributes | |
QWebSocket * | m_socket = nullptr |
TranslatedString | m_last_error |
String | m_data |
Protected Attributes inherited from ConnectionBackend | |
ProgressInfo * | m_log |
Additional Inherited Members | |
Signals inherited from ConnectionBackend | |
void | dataAvailableSignal () |
void | connectionStateChangedSignal (ConnectionState state) |
WebSocketConnection | ( | ProgressInfo * | log | ) |
~WebSocketConnection | ( | ) |
|
protectedslot |
|
overridevirtual |
Implements ConnectionBackend.
|
overridevirtual |
Implements ConnectionBackend.
|
protectedslot |
|
overridevirtual |
Implements ConnectionBackend.
|
overridevirtual |
Implements ConnectionBackend.
|
overridevirtual |
Implements ConnectionBackend.
Implements ConnectionBackend.
Implements ConnectionBackend.
|
virtual |
void setSocket | ( | QWebSocket * | socket | ) |
|
protectedslot |
|
overridevirtual |
Implements ConnectionBackend.
|
virtual |
|
overridevirtual |
Implements ConnectionBackend.
|
protected |
|
protected |
|
protected |