Merge pull request #112 from BluerabbitY/master

This commit is contained in:
qicosmos
2023-09-26 15:57:33 +08:00
committed by GitHub
+2
View File
@@ -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);