hc_session_free
Releases the session object.
Synopsis
hcerr_t hc_session_free (hc_session_t *session);
Description
This function releases the session object and recovers handles and memory for one connection.
Parameters
session
IN: The session object to free.
Return Codes
HCERR_OK
HCERR_BAD_REQUEST
HCERR_OOM
HCERR_NULL_SESSION
HCERR_INVALID_SESSION
hc_session_get_status
Gets the session status.
Synopsis
hcerr_t hc_session_get_status(hc_session_t *session,
int32_t *response_codep,char **errstrp);
Description
This function returns the HTTP response code and the error message string associated with the
last request on this session.
Parameters
session
IN: The session object.
SynchronousCAPI Functions
Chapter3 • SunStorageTek 5800SystemCClient API 55