mirror of
https://github.com/qicosmos/rest_rpc.git
synced 2026-08-29 08:34:47 +08:00
Merge pull request #112 from BluerabbitY/master
This commit is contained in:
@@ -26,6 +26,7 @@ struct message_type {
|
|||||||
};
|
};
|
||||||
|
|
||||||
static const uint8_t MAGIC_NUM = 39;
|
static const uint8_t MAGIC_NUM = 39;
|
||||||
|
#pragma pack(4)
|
||||||
struct rpc_header {
|
struct rpc_header {
|
||||||
uint8_t magic;
|
uint8_t magic;
|
||||||
request_type req_type;
|
request_type req_type;
|
||||||
@@ -33,6 +34,7 @@ struct rpc_header {
|
|||||||
uint64_t req_id;
|
uint64_t req_id;
|
||||||
uint32_t func_id;
|
uint32_t func_id;
|
||||||
};
|
};
|
||||||
|
#pragma pack()
|
||||||
|
|
||||||
static const size_t MAX_BUF_LEN = 1048576 * 10;
|
static const size_t MAX_BUF_LEN = 1048576 * 10;
|
||||||
static const size_t HEAD_LEN = sizeof(rpc_header);
|
static const size_t HEAD_LEN = sizeof(rpc_header);
|
||||||
|
|||||||
Reference in New Issue
Block a user