beautypg.com

Return codes, Hc_session_get_host, Synopsis – Sun Microsystems Sun StorageTek 5800 User Manual

Page 57: Description, Parameters

background image

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 modified 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

Synchronous C API Functions

Chapter 3 • Sun StorageTek 5800 System C Client API

57