| Spread RPC - Reference Manual | ||||
|---|---|---|---|---|
enum SPRpcStatus; SPRpcStatus sp_rpc_run (SPRpc *rpc); gboolean sp_rpc_is_running (SPRpc *rpc); void sp_rpc_quit (SPRpc *rpc); SPRpcStatus sp_rpc_iteration (SPRpc *rpc, gboolean may_block); SPRpcStatus sp_rpc_event_pending (SPRpc *rpc, gboolean *pending);
typedef enum
{
SP_RPC_STATUS_DONE = 0,
SP_RPC_STATUS_ILLEGAL_SESSION,
SP_RPC_STATUS_ILLEGAL_MESSAGE,
SP_RPC_STATUS_CONNECTION_CLOSED,
SP_RPC_STATUS_UNKNOWN_ERROR
} SPRpcStatus;
SPRpcStatus sp_rpc_run (SPRpc *rpc);
Execs the SPRpc loop for the messages. It will concluded by a sp_rpc_quit.
|
a SPRpc |
Returns : |
a status |
gboolean sp_rpc_is_running (SPRpc *rpc);
Returns TRUE isthe SPRpc loop is running.
|
a SPRpc |
Returns : |
TRUE/FALSE |
SPRpcStatus sp_rpc_iteration (SPRpc *rpc, gboolean may_block);
Runs a single iteration for the given SPRpc.
|
a SPRpc |
|
whether the call may block |
Returns : |
a status of the operation |
SPRpcStatus sp_rpc_event_pending (SPRpc *rpc, gboolean *pending);
Returns if there some events pending
|
a SPRpc |
|
location for a boolean |
Returns : |
the status |