mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-04-27 07:48:01 -07:00
fixed issue #50: ensure that tcp_nodelay is set
This commit is contained in:
parent
b106f76294
commit
f7975d8ace
2 changed files with 2 additions and 0 deletions
|
|
@ -19,6 +19,7 @@ RemoteClient::RemoteClient(QObject *parent)
|
|||
connect(timer, SIGNAL(timeout()), this, SLOT(ping()));
|
||||
|
||||
socket = new QTcpSocket(this);
|
||||
socket->setSocketOption(QAbstractSocket::LowDelayOption, 1);
|
||||
connect(socket, SIGNAL(connected()), this, SLOT(slotConnected()));
|
||||
connect(socket, SIGNAL(readyRead()), this, SLOT(readData()));
|
||||
connect(socket, SIGNAL(error(QAbstractSocket::SocketError)), this, SLOT(slotSocketError(QAbstractSocket::SocketError)));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue