NAME

GRPC_GET_HANDLE - Gets a function handle.

SYNOPSIS

INTEGER FUNCTION GRPC_GET_HANDLE(HANDLE, SID)

ARGUMENTS

INTEGER(KIND=8) HANDLE
The function handle
INTEGER SID
The session ID

DESCRIPTION

The GRPC_GET_HANDLE() function returns a function handle for the session specified by the session ID. If the value specified in SID 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.

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_INVALID_SESSION_ID
Session ID is not valid.
GRPC_OTHER_ERROR_CODE
Internal error detected.

last update : $Date$