4#include "JS8_Include/pimpl_h.h"
12 using port_type = quint16;
14 explicit TCPClient(QObject *parent =
nullptr);
19 Q_SLOT
bool ensureConnected(QString host, port_type port,
int msecs = 5000);
21 QByteArray
const &message,
bool crlf =
true,
TCPClient(QObject *parent=nullptr)
Construct a new TCPClient::TCPClient object.
Definition TCPClient.cpp:58
Q_SLOT bool ensureConnected(QString host, port_type port, int msecs=5000)
Ensures that the TCP client is connected to the specified host and port.
Definition TCPClient.cpp:69
Q_SLOT bool sendNetworkMessage(QString host, port_type port, QByteArray const &message, bool crlf=true, int msecs=5000)
Sends a network message to the specified host and port.
Definition TCPClient.cpp:87