mirror of
https://github.com/qicosmos/rest_rpc.git
synced 2026-08-29 08:34:47 +08:00
fix the issue of 32-bit and 64-bit machines unable to communicate.
This commit is contained in:
@@ -26,6 +26,7 @@ struct message_type {
|
||||
};
|
||||
|
||||
static const uint8_t MAGIC_NUM = 39;
|
||||
#pragma pack(4)
|
||||
struct rpc_header {
|
||||
uint8_t magic;
|
||||
request_type req_type;
|
||||
@@ -33,6 +34,7 @@ struct rpc_header {
|
||||
uint64_t req_id;
|
||||
uint32_t func_id;
|
||||
};
|
||||
#pragma pack()
|
||||
|
||||
static const size_t MAX_BUF_LEN = 1048576 * 10;
|
||||
static const size_t HEAD_LEN = sizeof(rpc_header);
|
||||
|
||||
Reference in New Issue
Block a user