openHiTLS API openHiTLS 0.1.0-Alpha1

◆ HITLS_SetQuietShutdown()

int32_t HITLS_SetQuietShutdown ( HITLS_Ctx ctx,
int32_t  mode 
)

Set the silent disconnection mode.

参数
ctx[IN] TLS connection handle.
mode[IN] Mode type. The value 0 indicates that the quiet disconnection mode is disabled, and the value 1 indicates that the quiet disconnection mode is enabled.
返回值
HITLS_SUCCESS,ifsuccessful. For details about other error codes, see hitls_error.h.