API Documentation
|
#include <SocketConnection.h>
Public Member Functions | |
SocketConnection (ProgressInfo *log) | |
~SocketConnection () | |
virtual uint04 | peek (char *, uint04 size) const final override |
virtual uint04 | rx (char *, uint04 size=Constant< uint04 >::Max) final override |
virtual void | tx (const String &command) final override |
virtual bool | open (const ConnectionInfo &request) final override |
virtual void | close () final override |
virtual bool | isOpen () const final override |
virtual uint04 | bytesAvailable () const override |
virtual TranslatedString | lastError () const final override |
virtual bool | setTCPPort (QTcpSocket *tcp_port, ConnectionOpenType connect_mode) |
virtual bool | setUDPPort (QUdpSocket *udp_port, ConnectionOpenType connect_mode) |
virtual bool | waitForReadyRead (const TimeSpan &span) final override |
virtual bool | waitForConnection (QAbstractSocket *socket, const ConnectionInfo &request) |
void | setSocket (QAbstractSocket *socket) |
bool | openUDP (const ConnectionInfo &request) |
bool | openUDPServer (const ConnectionInfo &request) |
bool | openTCP (const ConnectionInfo &request) |
Public Member Functions inherited from ConnectionBackend | |
ConnectionBackend (ProgressInfo *log) | |
virtual String | threadID () const |
Protected Slots | |
void | handleSocketErrorSlot (int error) |
Protected Attributes | |
QAbstractSocket * | m_socket = nullptr |
TranslatedString | m_last_error |
uint02 | m_broadcast_port = Constant<uint02>::NaN |
Protected Attributes inherited from ConnectionBackend | |
ProgressInfo * | m_log |
Additional Inherited Members | |
Signals inherited from ConnectionBackend | |
void | dataAvailableSignal () |
void | connectionStateChangedSignal (ConnectionState state) |
SocketConnection | ( | ProgressInfo * | log | ) |
~SocketConnection | ( | ) |
|
overridevirtual |
Implements ConnectionBackend.
|
finaloverridevirtual |
Implements ConnectionBackend.
|
protectedslot |
|
finaloverridevirtual |
Implements ConnectionBackend.
|
finaloverridevirtual |
Implements ConnectionBackend.
|
finaloverridevirtual |
Implements ConnectionBackend.
bool openTCP | ( | const ConnectionInfo & | request | ) |
bool openUDP | ( | const ConnectionInfo & | request | ) |
bool openUDPServer | ( | const ConnectionInfo & | request | ) |
Implements ConnectionBackend.
Implements ConnectionBackend.
void setSocket | ( | QAbstractSocket * | socket | ) |
|
virtual |
|
virtual |
|
finaloverridevirtual |
Implements ConnectionBackend.
|
virtual |
|
finaloverridevirtual |
Implements ConnectionBackend.
|
protected |
|
protected |