Sun Microsystems 5800 User Manual

Page of 136
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.
Synchronous C API Functions
Chapter 3 • Sun StorageTek 5800 System C Client API
55