nn::http::Connection::SetKeepAliveAvailability Member Functionnn::Result SetKeepAliveAvailability( bool isUseKeepAlive );
| Name | Description | |
|---|---|---|
| in | isUseKeepAlive | Sets whether to use keep-alive communication with the same host as the target communication, if it exists. Specify false to not use it. |
Result values listed below.| Value | Description |
|---|---|
Result::IsSuccess |
Process was successful. |
ResultNotConnectedErr |
Error indicating that no target URL was assigned to the Connection object. No action performed because the Connection object has not been initialized by a successful call of Initialize. |
ResultNotInitializedErr |
Error indicating that the library is not initialized. None of this library's functions can be used until you first call nn::http::Initialize. |
| A value other than the above | Unexpected error. (See http_Result.h for details.) |
Sets whether to use keep-alive communication with the same host as the target communication, if it exists.
If not explicitly specified by this function, it will be used.
This function is thus ordinarily used to specify "Not used" when you do not want keep-alive communication to be performed for the target communication.
CONFIDENTIAL