How Register An RPC Method To Be Invoked Remotely

// rpcID gives RPCHandlerForIDOne, a unique ID to be associated with.
int rpcID = 1;
bool registered = rpc.Register(rpcID, RPCHandlerForIDOne);

private void RPCHandlerForIDOne(byte[] message)
{
    // Do something awesome here
}