ReturnCodes
HCERR_OK
HCERR_BAD_REQUEST
HCERR_OOM
HCERR_NULL_SESSION
HCERR_INVALID_SESSION
hc_session_get_host
Returnsthe host name and port number associated with the session.
Synopsis
hc_session_get_host(hc_session_t *session,
char **hostp,int *portp);
Description
Thisfunction 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 modied by the
applicationand will persist until the next call to hc_session_free” on page 55.
portp
OUT:Updated to be the port number.
ReturnCodes
HCERR_OK
HCERR_BAD_REQUEST
HCERR_OOM
HCERR_NULL_SESSION
HCERR_INVALID_SESSION
SynchronousCAPI Functions
Chapter3 • Sun StorageTek 5800 System C Client API 57