NAME

grpc_session_attr_set_np - Sets session attributes.

SYNOPSIS

grpc_error_t grpc_session_attr_set_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 set
void *value
The values to be set
typedef enum grpc_session_attr_name_e_np {
    GRPC_SESSION_ATTR_WAIT_ARG_TRANSFER, /* grpc_argument_transfer_t_np */
    GRPC_SESSION_ATTR_SESSION_TIMEOUT,   /* int */
    GRPC_SESSION_ATTR_TRANSFER_TIMEOUT_ARGUMENT,          /* int */
    GRPC_SESSION_ATTR_TRANSFER_TIMEOUT_RESULT,            /* int */
    GRPC_SESSION_ATTR_TRANSFER_TIMEOUT_CALLBACK_ARGUMENT, /* int */
    GRPC_SESSION_ATTR_TRANSFER_TIMEOUT_CALLBACK_RESULT,   /* int */
} grpc_session_attr_name_t_np;

DESCRIPTION

The grpc_session_attr_set_np() function sets the values of session attributes.

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) $