Sun StorageTek 5800 System Client API Reference Manual

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.

portp

OUT: Updated to be the port number.

Return Codes

     HCERR_OK
     HCERR_BAD_REQUEST
     HCERR_OOM
     HCERR_NULL_SESSION
     HCERR_INVALID_SESSION