Return Codes
HCERR_OK
HCERR_BAD_REQUEST
HCERR_OOM
HCERR_NULL_SESSION
HCERR_INVALID_SESSION
hc_session_get_host
Returns the host name and port number associated with the session.
Synopsis
hc_session_get_host(hc_session_t *session,
char **hostp,int *portp);
Description
This function returns the host name and port number associated with the session.
Parameters
session
IN: The session object.
hostp
OUT: Updated to point to host name (read-only string). hostp should not be modied by the
application and will persist until the next call to
“hc_session_free” on page 55.
portp
OUT: Updated to be the port number.
Return Codes
HCERR_OK
HCERR_BAD_REQUEST
HCERR_OOM
HCERR_NULL_SESSION
HCERR_INVALID_SESSION
SynchronousCAPI Functions
Chapter3 • SunStorageTek 5800SystemCClient API 57