RPC function calls

#include "rpcCall.tcc"

Functions

template<class T, class ...Ts>
void rpcCall(Stream &io, T (*f)(Ts...))

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 – Stream.

  • f – Function pointer.

template<class C, class P, class T, class ...Ts>
void rpcCall(Stream &io, Tuple<C*, T (P::*)(Ts...)> t)

Call a class method.

See also

rpcCall(Stream&, T (*)(Ts…))

Parameters
  • io – Stream.

  • tTuple consisting of a pointer to a class instance and a pointer to a class method.