hc_session_free
Releasesthe session object.
Synopsis
hcerr_t hc_session_free (hc_session_t *session);
Description
Thisfunction releases the session object and recovers handles and memory for one connection.
Parameters
session
IN:The session object to free.
ReturnCodes
HCERR_OK
HCERR_BAD_REQUEST
HCERR_OOM
HCERR_NULL_SESSION
HCERR_INVALID_SESSION
hc_session_get_status
Getsthe session status.
Synopsis
hcerr_t hc_session_get_status(hc_session_t *session,
int32_t *response_codep,char **errstrp);
Description
Thisfunction returns the HTTP response code and the error message string associated with the
lastrequest on this session.
Parameters
session
IN:The session object.
SynchronousCAPI Functions
Chapter3 • Sun StorageTek 5800 System C Client API 55