Template Function gkfs::rpc::cleanup_respond(hg_handle_t *, InputType *, OutputType *, hg_bulk_t *)

Function Documentation

template<typename InputType, typename OutputType>
inline hg_return_t gkfs::rpc::cleanup_respond(hg_handle_t *handle, InputType *input, OutputType *output, hg_bulk_t *bulk_handle)

Combines responding to the client and cleaning up all RPC resources after.

Template Parameters
  • InputType – Any RPC input struct from client requests

  • OutputType – Any RPC output struct for client response

Parameters
  • handle – Pointer to Mercury RPC handle

  • input – Pointer to input struct

  • output – Pointer to output struct

  • bulk_handle – Pointer to Mercury bulk handle

Returns

Mercury error code. HG_SUCCESS on success.