dm_rpc_header_create Interface

public interface dm_rpc_header_create

Generic RPC header create function.


Module Procedures

private function rpc_header_create_request(request, max_size) result(rc)

Creates request header array of given maximum size.

The function returns the following error codes:

  • E_ALLOC if memory allocation failed.
  • E_INVALID if argument max_size is less than 0.

Arguments

Type IntentOptional Attributes Name
type(rpc_request_type), intent(inout) :: request

Request type.

integer, intent(in) :: max_size

Max. number of headers.

Return Value integer

private function rpc_header_create_response(response, max_size) result(rc)

Creates response header array of given maximum size.

The function returns the following error codes:

  • E_ALLOC if memory allocation failed.
  • E_INVALID if argument max_size is less than 0.

Arguments

Type IntentOptional Attributes Name
type(rpc_response_type), intent(inout) :: response

Response type.

integer, intent(in) :: max_size

Max. number of headers.

Return Value integer