I’m using as socket in C++ (Winsock2 for windows and socket.h for linux)
is there a way to configure the TCP retransmissions to be less or more than the default?
I mean: I know there is the registry key:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters
TCPMaxDataRetransmissions
that there I can configure it for all applications, but I want to configure only the socket in my application to be other than the default.
I haven’t tried this out, but I know there is a TCP_MAXRT option that you can set. Just did a quick search in the include directory, and I see it defined in ws2ipdef.h in Windows.