grpc_get_handle
- Gets a function handle.
grpc_error_t grpc_get_handle(grpc_function_handle_t **handle, grpc_sessionid_t session_id)
grpc_function_handle_t **handle
grpc_sessionid_t session_id
The grpc_get_handle() function returns a function handle for the session specified by the session ID. If the value specified in session_id is ID of session of Object Handle, this API returns error.
In Ninf-G, there are grpc_function_handle_get_from_session_np() which gets a function handle, and grpc_object_handle_get_from_session_np() which gets an object handle. The function of grpc_get_handle() and grpc_function_handle_get_from_session_np() is the same.
This function is MT-safe.
If successful, GRPC_NO_ERROR is returned. In the case of an error, Error code is returned.
GRPC_NOT_INITIALIZED
GRPC_INVALID_SESSION_ID
GRPC_OTHER_ERROR_CODE