Can't find how to set keep-alive option for sockets. Is it possible to use with QTcpSocket ?
Any ideas ?
Can't find how to set keep-alive option for sockets. Is it possible to use with QTcpSocket ?
Any ideas ?
As far as I know, TCP protocol does not provide any keep-alive mechanism. Are you talking about HTTP connection? If so, have you noticed QHttp?
J-P Nurmi
Actually, I already got it working. Although it required some modification of QAbstractSocket and QNativeSocketEngine =)
http://msdn2.microsoft.com/en-us/library/ms740476.aspx
http://tldp.org/HOWTO/html_single/TCP-Keepalive-HOWTO/
Thanks.
Bookmarks