dlls/ws2_32/socket.c
/* these values need to be set only if SO_KEEPALIVE is enabled */
these values need to be set only if SO_KEEPALIVE is enabled
these values need to be set only if SO_KEEPALIVE is enabled
else if(keepalive)
        {
            if (setsockopt(fd, IPPROTO_TCP, TCP_KEEPIDLE, (void *)&keepidle, sizeof(int)) == -1)
                status = WSAEINVAL;
            else if (setsockopt(fd, IPPROTO_TCP, TCP_KEEPINTVL, (void *)&keepintvl, sizeof(int)) == -1)
                status = WSAEINVAL;
        }
else if ( keepalive ) { if ( setsockopt ( fd , IPPROTO_TCP , TCP_KEEPIDLE , ( void * ) & keepidle , sizeof ( int ) ) == -1 ) status = WSAEINVAL ; else if ( setsockopt ( fd , IPPROTO_TCP , TCP_KEEPINTVL , ( void * ) & keepintvl , sizeof ( int ) ) == -1 ) status = WSAEINVAL ; }
these values need to be set only if SO_KEEPALIVE is enabled
these values need to be set only if SO_KEEPALIVE is enabled