Displaying 1 result from an estimated 1 matches for "registerrpccall".
2009 Aug 30
4
[LLVMdev] Perfect forwarding?
...}
}
// If someClass did not have NetworkIDObject as a child anywhere in
its multibase hierarchy, then the class itself is serialized up as if
by value, then passed to the remote function by pointer when
deserialized (on the stack, eh, eh?, has to be default constructable
to support that, or the registerRPCCall below will not even compile,
yes this is completely typesafe in every way)
void _testFunc(int i, someClass *ptr) {
// do something
}
// example syntax
networkWorld::RPCCaller testFunc =
networkWorld->registerRPCCall("testFunc",&testFunc,enumCallOnClientOnly);
networkWorld::RPCC...