SocketOptionName.KeepAlive / Timeout

  • Thread starter Thread starter Kevin
  • Start date Start date
K

Kevin

Hi,

How can you set up the timeout values of the KeepAlive Socket option like
you do using WSAIoctl and SIO_KEEPALIVE_VALS using C++ ?

Searching about this I found several post of people using the int argument
of SetSocketOption thinking it represents some timeout value,
but I think it's wrong since 2 values are needed to set up the correct
timeout...

ie:
SetSocketOption(SocketOptionLevel.Socket, SocketOptionName.KeepAlive, 3);
or
SetSocketOption(SocketOptionLevel.Socket, SocketOptionName.KeepAlive, 7200);
 
Back
Top