I wonder what the basic options for QTCPSocket are.
-
Hi.
my qt version 4.8.7
my OS is centos7I wonder what the default options for QTCPSocket are.
LowDelayOption??
KeepAlive??Do I need to set up in a .pro file or Makefile, not a code?
Please Help me!!!
-
Hi.
my qt version 4.8.7
my OS is centos7I wonder what the default options for QTCPSocket are.
LowDelayOption??
KeepAlive??Do I need to set up in a .pro file or Makefile, not a code?
Please Help me!!!
@keyboard_hellchang said in I wonder what the basic options for QTCPSocket are.:
I wonder what the default options for QTCPSocket are.
LowDelayOption??
KeepAlive??Have you tried to search in documentation?
- QAbstractSocket::LowDelayOption
Try to optimize the socket for low latency. For a QTcpSocket this would set the TCP_NODELAY option and disable Nagle's algorithm. Set this to 1 to enable.
- QAbstractSocket::KeepAliveOption
Set this to 1 to enable the SO_KEEPALIVE socket option
-
Hi.
my qt version 4.8.7
my OS is centos7I wonder what the default options for QTCPSocket are.
LowDelayOption??
KeepAlive??Do I need to set up in a .pro file or Makefile, not a code?
Please Help me!!!
@keyboard_hellchang Qt is open source, so you can simply check the QTCPSocket implementation (default constructor) to see how socket is initialized.