![]() |
API Documentation
|
A ConnectionBackend that allows the software to interface with QWebSocket for communicating with WebSocket devices. More...
#include <WebSocketConnection.h>
Public Member Functions | |
| virtual uint04 | bytesAvailable () const override |
| virtual void | close () override |
| virtual bool | isOpen () const override |
| virtual TranslatedString | lastError () const override |
| virtual bool | open (const ConnectionInfo &request) override |
| virtual uint04 | peek (char *, uint04 size) const override |
| virtual uint04 | rx (char *, uint04 size=Constant< uint04 >::Max) override |
| virtual bool | setPort (QWebSocket *tcp_port) |
| void | setSocket (QWebSocket *socket) |
| virtual void | tx (const String &command) override |
| virtual bool | waitForConnection (QWebSocket *socket, const ConnectionInfo &request) |
| virtual bool | waitForReadyRead (const TimeSpan &span) override |
| WebSocketConnection (ProgressInfo *log) | |
| ~WebSocketConnection () | |
Public Member Functions inherited from ConnectionBackend | |
| ConnectionBackend (ProgressInfo *log) | |
| virtual String | threadID () const |
Protected Slots | |
| void | binaryMessageRecieved (const QByteArray &array) |
| void | handleSocketErrorSlot (int error) |
| void | textMessageRecieved (const QString &message) |
Protected Attributes | |
| String | m_data |
| TranslatedString | m_last_error |
| QWebSocket * | m_socket = nullptr |
Protected Attributes inherited from ConnectionBackend | |
| ProgressInfo * | m_log |
Additional Inherited Members | |
Signals inherited from ConnectionBackend | |
| void | connectionStateChangedSignal (ConnectionState state) |
| void | dataAvailableSignal () |
A ConnectionBackend that allows the software to interface with QWebSocket for communicating with WebSocket devices.
WebSockets is a web technology providing full-duplex communications channels over a single TCP connection. The WebSocket protocol was standardized by the IETF as RFC 6455 in 2011. QWebSocket can both be used in a client application and server application.
| 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 |