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.

Template Parameters:
  • T – Function pointer return type.

  • Ts... – Function pointer parameter types.

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…))

Template Parameters:
  • C – Class instance type.

  • P – Class instance parent type.

  • T – Class member function pointer return type.

  • Ts... – Class member function pointer parameter types.

Parameters:
  • io – Stream.

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