mirror of
https://github.com/x-tools-author/x-tools.git
synced 2025-09-15 15:28:40 +08:00
Update saktcpservertool.cc
Fixed TCP server not displaying received data
This commit is contained in:
parent
f73a541140
commit
56d8cf3a27
@ -42,8 +42,10 @@ bool SAKTcpServerTool::initialize(QString &errStr)
|
||||
connect(client, &QTcpSocket::readyRead, client, [=]() {
|
||||
QByteArray bytes = client->readAll();
|
||||
QString hex = bytes.toHex();
|
||||
qInfo() << QString("%1<-%2:%3").arg(m_bindingIpPort, ipPort, hex);
|
||||
QString msg = QString("%1<-%2:%3").arg(m_bindingIpPort, ipPort, hex);
|
||||
qInfo() << msg;
|
||||
emit outputBytes(bytes);
|
||||
emit bytesRead(bytes, ipPort);
|
||||
});
|
||||
|
||||
connect(client, &QTcpSocket::disconnected, client, [=]() {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user