GRPC_SESSION_ATTR_INITIALIZE_NP
- Initializes session attributes with function handle.
INTEGER FUNCTION GRPC_SESSION_ATTR_INITIALIZE_NP(HANDLE, ATTR)
INTEGER(KIND=8) HANDLE
INTEGER(KIND=8) ATTR
The GRPC_SESSION_ATTR_INITIALIZE_NP() function initializes session attributes.
This function is MT-safe.
The session handle attributes has the following members.
This is a flag indicating whether or not to wait for the transfer of arguments in an asynchronous RPC. The value can be one of the followings.
It waits for the end of transfer argument.
It does not wait for the end of transfer argument.
The copy of an argument is made and it waits for the completion of the copy.
GRPC_SESSION_ATTR_SET_WAIT_ARG_TRANSFER_NP() can be used for setting this to the handle attributes. GRPC_SESSION_ATTR_GET_WAIT_ARG_TRANSFER_NP() can be used for getting this form the handle attributes.
This is the RPC execution timeout time. The value is in seconds.
The details of this attribute is described in section 4.3.6, The client configuration file FUNCTION_INFO section.
GRPC_SESSION_ATTR_SET_SESSION_TIMEOUT_NP() can be used for setting this to the handle attributes. GRPC_SESSION_ATTR_GET_SESSION_TIMEOUT_NP() can be used for getting this form the handle attributes.
There are the RPC data transfer tiemout time. The unit is in second. The details of this attribute is described in section 4.3.6, The client configuration file FUNCTION_INFO section.
GRPC_SESSION_ATTR_SET_TRANSFER_TIMEOUT_ARGUMENT_NP() can be used for setting RPC argument data transfer timeout to the handle attributes. GRPC_SESSION_ATTR_GET_TRANSFER_TIMEOUT_ARGUMENT_NP() can be used for getting RPC argument data transfer timeout form the handle attributes. GRPC_SESSION_ATTR_SET_TRANSFER_TIMEOUT_RESULT_NP() can be used for setting RPC result data transfer timeout to the handle attributes. GRPC_SESSION_ATTR_GET_TRANSFER_TIMEOUT_RESULT_NP() can be used for getting RPC result data transfer timeout form the handle attributes. GRPC_SESSION_ATTR_SET_TRANSFER_TIMEOUT_CARGUMENT_NP() can be used for setting RPC callback argument data transfer timeout to the handle attributes. GRPC_SESSION_ATTR_GET_TRANSFER_TIMEOUT_CARGUMENT_NP() can be used for getting RPC callback argument data transfer timeout form the handle attributes. GRPC_SESSION_ATTR_SET_TRANSFER_TIMEOUT_CRESULT_NP() can be used for setting RPC callback result data transfer timeout to the handle attributes. GRPC_SESSION_ATTR_GET_TRANSFER_TIMEOUT_CRESULT_NP() can be used for getting RPC callback result data transfer timeout form the handle attributes.
If successful, GRPC_NO_ERROR is returned. In the case of an error, Error code is returned.
GRPC_NOT_INITIALIZED
GRPC_INVALID_FUNCTION_HANDLE
GRPC_OTHER_ERROR_CODE