API Documentation
|
A core ConnectionBackend for QAbstractSocket supporting TCP and UDP connections. More...
#include <SocketConnection.h>
Public Member Functions | |
virtual uint04 | bytesAvailable () const override |
virtual void | close () final override |
virtual bool | isOpen () const final override |
virtual TranslatedString | lastError () const final override |
virtual bool | open (const ConnectionInfo &request) final override |
bool | openTCP (const ConnectionInfo &request) |
bool | openUDP (const ConnectionInfo &request) |
bool | openUDPServer (const ConnectionInfo &request) |
virtual uint04 | peek (char *, uint04 size) const final override |
virtual uint04 | rx (char *, uint04 size=Constant< uint04 >::Max) final override |
void | setSocket (QAbstractSocket *socket) |
virtual bool | setTCPPort (QTcpSocket *tcp_port, ConnectionOpenType connect_mode) |
virtual bool | setUDPPort (QUdpSocket *udp_port, ConnectionOpenType connect_mode) |
SocketConnection (ProgressInfo *log) | |
virtual void | tx (const String &command) final override |
virtual bool | waitForConnection (QAbstractSocket *socket, const ConnectionInfo &request) |
virtual bool | waitForReadyRead (const TimeSpan &span) final override |
~SocketConnection () | |
Public Member Functions inherited from ConnectionBackend | |
ConnectionBackend (ProgressInfo *log) | |
virtual String | threadID () const |
Protected Slots | |
void | handleSocketErrorSlot (int error) |
Protected Attributes | |
uint02 | m_broadcast_port = Constant<uint02>::Invalid |
TranslatedString | m_last_error |
QAbstractSocket * | 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 core ConnectionBackend for QAbstractSocket supporting TCP and UDP connections.
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 |