Thank you for answer
but i have another question
I read that should set flag SO_REUSEADDR (WINDOWS) for socket, to reuse this ports which are in TIME_WAIT state
example for set SO_REUSEADDR flag :
int flag = 1;
result = setsockopt( listensock, SOL_SOCKET, SO_REUSEADDR, ( char * ) &flag, sizeof (int ) );
int flag = 1;
result = setsockopt( listensock, SOL_SOCKET, SO_REUSEADDR, ( char * ) &flag, sizeof (int ) );
To copy to clipboard, switch view to plain text mode
but I can't set this option(flag) in QHttp class
I tried found wher can I set this option in other classes QNetworkAccessManager, QTcpSocket, QNetworkReply but without success
I only found info about SO_REUSEADDR flag in QUdpSocek class
How can I reuse ports in TIME_WAIT state by using QHttp class
(maybe I should use something other than QHttp, to reuse this ports?)
Bookmarks