tfSslSessionUserClose

Jump to: navigation, search

Table of Contents >> SSL Programmer's Reference


#include <trsocket.h>


int tfSslSessionUserClose (int sessionId);


Function Description

Call this function to close an SSL session. All cached connection information in this session will be freed too. There may be some SSL connections open inside this session. The user should call tfSslConnectUserClose() or tfClose() first in order to close all active connections in this session properly (by flushing the send buffer and sending CLOSE_NOTIFY to the peer). If user fails to do so themselves, this function call will close all active SSL connections in this session without sending out CLOSE_NOTIFY message and any queued SSL send buffer will be freed (Not flushed!).


Parameters

  • sessionId
    The session Id


Returns

  • TM_ENOERROR
    Success
  • TM_EINVAL
    Session not found


Table of Contents >> SSL Programmer's Reference