RPC function calls

#include "rpcCall.tcc"

Functions

template <class R, class… FArgs>
void rpcCall(Stream &io, R (*f)(FArgs...))

Call a function.

Parameter values for f are read from io, after which f is called. Any return value is written back to io.

Parameters
  • io -

    Input / output object.

  • f -

    Function pointer.

template <class C, class P, class R, class… FArgs>
void rpcCall(Stream &io, Tuple<C *, R (P::*)(FArgs...)> t)

Call a class method.

See
rpcCall(Stream&, R (*)(FArgs…))
Parameters
  • io -

    Input / output object.

  • t -

    Tuple consisting of a pointer to a class instance and a pointer to a class method.