SetTcpKeepAlive()

ServicePointManager::SetTcpKeepAlive(bool, int32_t, int32_t) method

Sets the value that indicates if the ‘Keep-Alive’ option is enabled.

static void System::Net::ServicePointManager::SetTcpKeepAlive(bool enabled, int32_t keepAliveTime, int32_t keepAliveInterval)

Arguments

ParameterTypeDescription
enabledboolA value that indicates if the ‘Keep-Alive’ option is enabled.
keepAliveTimeint32_tA timeout in milliseconds after which the first ‘Keep-Alive’ packet will be sent.
keepAliveIntervalint32_tA timeout in milliseconds between sending ‘Keep-Alive’ packets.

See Also