|
|
| version 1.5.2.3, 2012/03/12 16:28:09 | version 1.5.2.4, 2012/03/13 17:10:13 |
|---|---|
| Line 64 SUCH DAMAGE. | Line 64 SUCH DAMAGE. |
| #define RPC_VERSION 3 | #define RPC_VERSION 3 |
| #define RPC_DEFPORT 2611 | #define RPC_DEFPORT 2611 |
| /* RPC call request flags */ | |
| #define RPC_REPLY 0x0 | |
| #define RPC_NOREPLY 0x1 | |
| /* RPC builtin registed calls */ | /* RPC builtin registed calls */ |
| #define CALL_BLOBSHUTDOWN "rpcBLOBServerShutdown" | #define CALL_BLOBSHUTDOWN "rpcBLOBServerShutdown" |
| Line 121 typedef struct { | Line 125 typedef struct { |
| typedef struct tagRPCFunc { | typedef struct tagRPCFunc { |
| uint16_t func_tag; | uint16_t func_tag; |
| uint32_t func_hash; | uint32_t func_hash; |
| char *func_file; | ait_val_t func_file; |
| char *func_name; | ait_val_t func_name; |
| array_t *func_vars; | array_t *func_vars; |
| Line 135 typedef struct tagRPCFunc { | Line 139 typedef struct tagRPCFunc { |
| struct tagRPCCall { | struct tagRPCCall { |
| rpc_sess_t call_session; | rpc_sess_t call_session; |
| uint16_t call_tag; | uint16_t call_tag; |
| uint32_t call_hash; | uint32_t call_hash; |
| uint16_t call_argc; | uint16_t call_argc; |
| } __packed; | |
| /* Network RPC packet - Server response */ | union { |
| struct { | |
| uint64_t flags; | |
| } call_req; | |
| struct { | |
| int32_t ret; | |
| int32_t eno; | |
| } call_rep; | |
| }; | |
| struct tagRPCRet { | uint16_t call_crc; |
| rpc_sess_t ret_session; | |
| uint16_t ret_tag; | |
| uint32_t ret_hash; | |
| int32_t ret_retcode; | |
| int32_t ret_errno; | |
| uint16_t ret_argc; | |
| } __packed; | } __packed; |
| /* Network BLOB packet - Header */ | /* Network BLOB packet - Header */ |
| Line 207 typedef struct { | Line 213 typedef struct { |
| pthread_mutex_t mtx; | pthread_mutex_t mtx; |
| } srv_blob; | } srv_blob; |
| sched_root_task_t *srv_sched; | |
| } rpc_srv_t; | } rpc_srv_t; |