version 1.1.2.1, 2015/07/02 17:52:52
|
version 1.3.4.2, 2024/02/26 11:00:37
|
Line 12 terms:
|
Line 12 terms:
|
All of the documentation and software included in the ELWIX and AITNET |
All of the documentation and software included in the ELWIX and AITNET |
Releases is copyrighted by ELWIX - Sofia/Bulgaria <info@elwix.org> |
Releases is copyrighted by ELWIX - Sofia/Bulgaria <info@elwix.org> |
|
|
Copyright 2004 - 2015 | Copyright 2004 - 2024 |
by Michael Pounov <misho@elwix.org>. All rights reserved. |
by Michael Pounov <misho@elwix.org>. All rights reserved. |
|
|
Redistribution and use in source and binary forms, with or without |
Redistribution and use in source and binary forms, with or without |
Line 79 SUCH DAMAGE.
|
Line 79 SUCH DAMAGE.
|
|
|
/* RPC call I/O direction */ |
/* RPC call I/O direction */ |
|
|
#define RPC_REQ 0x0 | #define RPC_REQ 0x1 |
#define RPC_ACK 0x1 | #define RPC_ACK 0x2 |
| #define RPC_IPC 0x4 |
|
|
/* RPC builtin registed calls */ |
/* RPC builtin registed calls */ |
|
|
Line 113 typedef struct {
|
Line 114 typedef struct {
|
uint16_t sess_version:8; |
uint16_t sess_version:8; |
uint16_t sess_instance:8; |
uint16_t sess_instance:8; |
#endif |
#endif |
} __packed rpc_sess_t; /* size == 2 bytes */ | } __attribute__((packed)) rpc_sess_t; /* size == 2 bytes */ |
|
|
/* Network RPC packet - Header */ |
/* Network RPC packet - Header */ |
|
|
Line 138 struct tagRPCCall {
|
Line 139 struct tagRPCCall {
|
uint16_t call_tag; |
uint16_t call_tag; |
uint8_t call_argc; |
uint8_t call_argc; |
ait_val_t call_argv[0]; |
ait_val_t call_argv[0]; |
} __packed; /* size == 20 bytes */ | } __attribute__((packed)); /* size == 20 bytes */ |
#define RPC_CHK_NOREPLY(x) (ntohl((u_long) (x)->call_req.flags) & RPC_NOREPLY) |
#define RPC_CHK_NOREPLY(x) (ntohl((u_long) (x)->call_req.flags) & RPC_NOREPLY) |
#define RPC_SET_ERRNO(x, _v) ((x)->call_rep.eno = (int32_t) htonl((_v))) |
#define RPC_SET_ERRNO(x, _v) ((x)->call_rep.eno = (int32_t) htonl((_v))) |
#define RPC_SET_RETURN(x, _v) ((x)->call_rep.ret = (int32_t) htonl((_v))) |
#define RPC_SET_RETURN(x, _v) ((x)->call_rep.ret = (int32_t) htonl((_v))) |
Line 152 struct tagBLOBHdr {
|
Line 153 struct tagBLOBHdr {
|
uint32_t hdr_len; |
uint32_t hdr_len; |
uint32_t hdr_ret; |
uint32_t hdr_ret; |
uint8_t hdr_pad; |
uint8_t hdr_pad; |
} __packed; /* size == 16 bytes */ | } __attribute__((packed)); /* size == 16 bytes */ |
#define RPC_SET_BLOB_RET(x, _v) ((x)->hdr_ret = (uint32_t) htonl((_v))) |
#define RPC_SET_BLOB_RET(x, _v) ((x)->hdr_ret = (uint32_t) htonl((_v))) |
|
|
/* RPC BLOB types */ |
/* RPC BLOB types */ |