RPC implementation.
More...
|
err_t | rpc_init (struct rpc_client *client, struct ip_addr server) |
| Initialise a new RPC client instance. More...
|
|
err_t | rpc_call (struct rpc_client *client, uint16_t port, uint32_t prog, uint32_t vers, uint32_t proc, xdrproc_t args_xdrproc, void *args, size_t args_size, rpc_callback_t callback, void *cbarg1, void *cbarg2) |
| Initiate an RPC Call. More...
|
|
void | rpc_destroy (struct rpc_client *client) |
| Destroy the given client, freeing any associated memory.
|
|
err_t rpc_call |
( |
struct rpc_client * |
client, |
|
|
uint16_t |
port, |
|
|
uint32_t |
prog, |
|
|
uint32_t |
vers, |
|
|
uint32_t |
proc, |
|
|
xdrproc_t |
args_xdrproc, |
|
|
void * |
args, |
|
|
size_t |
args_size, |
|
|
rpc_callback_t |
callback, |
|
|
void * |
cbarg1, |
|
|
void * |
cbarg2 |
|
) |
| |
Initiate an RPC Call.
- Parameters
-
client | RPC client, previously initialised by a call to rpc_init() |
port | UDP port on server to call |
prog | RPC program number |
vers | RPC program version |
proc | RPC procedure number |
args_xdrproc | XDR serialisation function for arguments to call |
args | Argument data to be passed to #args_xdrproc |
args_size | Upper bound on size of serialised argument data |
callback | Callback function to be invoked when call either completes or fails |
cbarg1,cbarg2 | Opaque arguments to be passed to callback function |
- Returns
- Error code (ERR_OK on success)
err_t rpc_init |
( |
struct rpc_client * |
client, |
|
|
struct ip_addr |
server |
|
) |
| |
Initialise a new RPC client instance.
- Parameters
-
client | Pointer to memory for RPC client data, to be initialised |
server | IP address of server to be called |
- Returns
- Error code (ERR_OK on success)