NAME

grpc_session_attr_get_np - Gets handle attributes.

SYNOPSIS

grpc_error_t grpc_session_attr_get_np(grpc_session_attr_t_np *attr, grpc_session_attr_name_t_np name, void **value)

ARGUMENTS

grpc_session_attr_t_np *attr
The session attributes
grpc_session_attr_name_t_np name
The names of the attributes to be gotten
void *value
The values to be gotten

DESCRIPTION

The grpc_session_attr_get_np() function returns the values of session attributes.

See the manual of grpc_session_attr_set_np() for details of grpc_session_attr_name_t_np.

Memory area allocated for the attribute value should be released by calling grpc_session_attr_release_np() after the value was referred.

This function is MT-safe.

RETURN VALUE

If successful, GRPC_NO_ERROR is returned. In the case of an error, Error code is returned.

ERRORS

GRPC_NOT_INITIALIZED
GRPC client is not initialized yet.
GRPC_OTHER_ERROR_CODE
Internal error detected.

last update : $Date: 2010-04-16 01:09:23 +0900 (金, 16 4月 2010) $