version 1.1.1.1.2.6, 2010/06/23 15:07:15
|
version 1.1.1.1.2.7, 2010/06/23 16:23:31
|
Line 19
|
Line 19
|
#include <sys/socket.h> |
#include <sys/socket.h> |
|
|
|
|
#define STRSIZ 256 |
|
|
|
#define RPC_VERSION 1 |
#define RPC_VERSION 1 |
#define RPC_DEFPORT 2611 |
#define RPC_DEFPORT 2611 |
|
|
Line 240 typedef struct {
|
Line 238 typedef struct {
|
|
|
// BLOB registration element! |
// BLOB registration element! |
typedef struct tagBLOB { |
typedef struct tagBLOB { |
rpc_cli_t *blob_cli; // from RPC client |
|
|
|
uint32_t blob_var; |
uint32_t blob_var; |
|
|
size_t blob_len; // size of allocated BLOB data |
size_t blob_len; // size of allocated BLOB data |
Line 422 inline int rpc_srv_delValsCall(rpc_func_t * __restrict
|
Line 418 inline int rpc_srv_delValsCall(rpc_func_t * __restrict
|
* return: -1 error, !=-1 Number of returned variables |
* return: -1 error, !=-1 Number of returned variables |
*/ |
*/ |
inline int rpc_srv_getValsCall(rpc_func_t * __restrict call, rpc_val_t ** __restrict vals); |
inline int rpc_srv_getValsCall(rpc_func_t * __restrict call, rpc_val_t ** __restrict vals); |
|
|
|
|
|
/* |
|
* rpc_srv_blobMap() Map blob to memory region |
|
* @srv = RPC Server instance |
|
* @blob = Map to this BLOB element |
|
* return: -1 error or 0 ok |
|
*/ |
|
inline int rpc_srv_blobMap(rpc_srv_t * __restrict srv, rpc_blob_t * __restrict blob); |
|
/* |
|
* rpc_srv_blobUnmap() Unmap blob memory region |
|
* @blob = Mapped BLOB element |
|
* return: none |
|
*/ |
|
inline void rpc_srv_blobUnmap(rpc_blob_t * __restrict blob); |
|
/* |
|
* rpc_srv_blobFree() Free blob from disk & memory |
|
* @srv = RPC Server instance |
|
* @blob = Mapped BLOB element |
|
* return: -1 error or 0 ok |
|
*/ |
|
inline int rpc_srv_blobFree(rpc_srv_t * __restrict srv, rpc_blob_t * __restrict blob); |
|
|
|
|
/* RPC Client side functions */ |
/* RPC Client side functions */ |