version 1.1.1.1.2.18, 2010/07/08 07:16:36
|
version 1.1.1.1.2.20, 2010/07/08 09:18:51
|
Line 219 struct tagBLOBHdr {
|
Line 219 struct tagBLOBHdr {
|
rpc_sess_t hdr_session; |
rpc_sess_t hdr_session; |
uint8_t hdr_cmd; |
uint8_t hdr_cmd; |
uint32_t hdr_var; |
uint32_t hdr_var; |
uint32_t hdr_seq; |
|
uint32_t hdr_len; |
uint32_t hdr_len; |
|
uint32_t hdr_ret; |
} __packed; |
} __packed; |
|
|
/* Network RPC client & server elements */ |
/* Network RPC client & server elements */ |
Line 508 int rpc_cli_sendBLOB(rpc_cli_t * __restrict cli, rpc_v
|
Line 508 int rpc_cli_sendBLOB(rpc_cli_t * __restrict cli, rpc_v
|
* return: -1 error, 0 ok, 1 remote error |
* return: -1 error, 0 ok, 1 remote error |
*/ |
*/ |
int rpc_cli_recvBLOB(rpc_cli_t * __restrict cli, rpc_val_t * __restrict var, void ** data); |
int rpc_cli_recvBLOB(rpc_cli_t * __restrict cli, rpc_val_t * __restrict var, void ** data); |
|
/* |
|
* rpc_cli_delBLOB() Delete BLOB from server |
|
* @cli = Client instance |
|
* @var = BLOB variable |
|
* return: -1 error, 0 ok, 1 remote error |
|
*/ |
|
int rpc_cli_delBLOB(rpc_cli_t * __restrict cli, rpc_val_t * __restrict var); |
|
/* |
|
* rpc_cli_getBLOB() Receive BLOB from server and Delete after that. |
|
* @cli = Client instance |
|
* @var = BLOB variable |
|
* @data = BLOB data, must be free after use! |
|
* return: -1 error, 0 ok, >0 remote error |
|
*/ |
|
inline int rpc_cli_getBLOB(rpc_cli_t * __restrict cli, rpc_val_t * __restrict var, void ** data); |
|
|
|
|
|
|
/* RPC Client side functions */ |
/* RPC Client side functions */ |