RPCCallStore¶
-
class
kanzi::connect
::
RPCCallStore
¶ Public Functions
-
RPCCallStore
()¶ Constructor.
-
RPCTypes::CommHandle
allocateHandle
()¶ Allocates a unique handle to be used in communication.
- Returns
the unique handle. Quaranteed not to return 0 in any scenario.
-
bool
completeBool
(RPCTypes::CommHandle handle, int32_t rpcstatus, bool value)¶ Complete bool type of item.
- Parameters
handle – identifies the item to complete
rpcstatus – low layer status for completion
value – value to set.
- Returns
true if rpc operation was pending and got completed.
-
bool
completeFloat
(RPCTypes::CommHandle handle, int32_t rpcstatus, float value)¶ Complete float type of item.
- Parameters
handle – identifies the item to complete
rpcstatus – low layer status for completion
value – value to set.
- Returns
true if rpc operation was pending and got completed.
-
bool
completeInt
(RPCTypes::CommHandle handle, int32_t rpcstatus, int32_t value)¶ Complete int type of item.
- Parameters
handle – identifies the item to complete
rpcstatus – low layer status for completion
value – value to set.
- Returns
true if rpc operation was pending and got completed.
-
bool
completeString
(RPCTypes::CommHandle handle, int32_t rpcstatus, string value)¶ Complete string type of item.
- Parameters
handle – identifies the item to complete
rpcstatus – low layer status for completion
value – value to set.
- Returns
true if rpc operation was pending and got completed.
-
void
completeTimedOut
()¶ Completes all timed out RPC calls.
-
bool
completeVoid
(RPCTypes::CommHandle handle, int32_t rpcstatus)¶ Complete void type of item.
- Parameters
handle – identifies the item to complete
rpcstatus – low layer status for completion
- Returns
true if rpc operation was pending and got completed.
-
bool
contains
(RPCTypes::CommHandle handle)¶ Checks whether response with provided handle is known.
- Parameters
handle – the identifier of the operation
- Returns
true
-
void
handleLinkBroken
()¶ Called when underlying link that carries RPC methods.
-