grpc_session_attr_set_np
- Sets session attributes.
grpc_error_t grpc_session_attr_set_np(grpc_session_attr_t_np *attr,
grpc_session_attr_name_t_np name,
void *value)
grpc_session_attr_t_np *attr
grpc_session_attr_name_t_np name
void *value
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_name_t_np;
GRPC_SESSION_ATTR_WAIT_ARG_TRANSFER
This flag specifies whether or not to wait for the transfer of arguments in an asynchronous RPC.
The default is to wait for the transfer.
The value set up with this attribute is shown below.
GRPC_ARGUMENT_TRANSFER_WAIT
It waits for the end of transfer argument.
GRPC_ARGUMENT_TRANSFER_NOWAIT
It does not wait for the end of transfer argument.
GRPC_ARGUMENT_TRANSFER_COPY
The copy of an argument is made.
GRPC_SESSION_ATTR_SESSION_TIMEOUT
This specifies the RPC execution timeout time. The unit is in second.
The details of this attribute is described in section 4.3.7, The client configuration file FUNCTION_INFO section.
This function is MT-safe.
GRPC_NOT_INITIALIZED
GRPC_OTHER_ERROR_CODE