28 using port_type = quint16;
30 explicit TCPClient(QObject *parent =
nullptr);
39 Q_SLOT
bool ensureConnected(QString host, port_type port,
int msecs = 5000);
51 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)
Ensure a TCP connection to host:port within msecs milliseconds.
Definition TCPClient.cpp:69
Q_SLOT bool sendNetworkMessage(QString host, port_type port, QByteArray const &message, bool crlf=true, int msecs=5000)
Send a short network message to host:port.
Definition TCPClient.cpp:87
Opaque implementation manager utilizing perfect forwarding of constructors.
Definition pimpl_h.h:28
An implementation-hiding utility class template leveraging the Pimpl idiom.