|
typedef boost::function< void(const PeerId &, const Xid &, const Ptr< const FunDedicatedServerRpcMessage > &)> | Callback |
| Functor to be invoked when a client receives back a reply.
|
|
typedef boost::function< void(const PeerId &)> | ConnectHandler |
| Functor to be invoked when a peer connected.
|
|
typedef boost::function< void(const PeerId &)> | DisconnectHandler |
| Functor to be invoked when a peer disconnected.
|
|
typedef boost::asio::ip::tcp::endpoint | PeerEndpoint |
|
typedef Uuid | PeerId |
|
typedef std::map< PeerId, PeerEndpoint > | PeerMap |
|
typedef string | Tag |
|
typedef Uuid | Xid |
|
|
static void | Call (const PeerId &peer, const Ptr< FunDedicatedServerRpcMessage > &msg, const Callback &callback) ASSERT_NO_ROLLBACK |
| Sends a RPC requst to the given Dedicated Server RPC peer. More...
|
|
static void | CallRandomly (const Ptr< FunDedicatedServerRpcMessage > &msg, const Callback &callback) ASSERT_NO_ROLLBACK |
| Sends a RPC requst to the Deidcated Server RPC peer randomly. More...
|
|
static size_t | GetPeers (PeerMap *ret) |
| Returns information on Dedicated Server RPC peers. More...
|
|
static size_t | GetPeersWithTag (PeerMap *ret, const Tag &tag) |
| Returns a list of RPC peers with the given tag. More...
|
|
static Tag | GetPeerTag (const PeerId &peer) |
| Gets a tag of the peer. More...
|
|
static bool | HasTag (const PeerId &peer, const Tag &tag) |
| Checks if the RPC peer has the tag. More...
|
|
static bool | IsPeerConnected (const PeerId &peer) |
| Checks if the peer is connected. More...
|
|
static void | RegisterConnectHandler (const ConnectHandler &h) |
| Registers a handler for notifying a new peer connection.
|
|
static void | RegisterDisconnectHandler (const DisconnectHandler &h) |
| Registers a handler for notifying a peer disconnection.
|
|