4 Star 10 Fork 7

liudengfeng/xfrpc

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
iod_proto.h 555 Bytes
一键复制 编辑 原始数据 按行查看 历史
#ifndef IOD_PROTO_H
#define IOD_PROTO_H
#include <stdint.h>
#include <stdbool.h>
#include <netinet/in.h>
#define IOD_MAGIC 0xEFEFB0B0
#define IOD_DATA 101
#define IOD_SET_VIP 102
#define IOD_SET_VIP_ACK 202
#define IOD_GET_VIP 104
#define IOD_GET_VIP_ACK 204
struct iod_header {
uint32_t magic;
uint32_t type;
uint64_t unique_id;
uint32_t vip4;
uint32_t length;
uint8_t data[0];
};
bool is_valid_iod_header(const struct iod_header *header);
bool is_local_iod_command(uint32_t type);
#endif // IOD_PROTO_H
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C
1
https://gitee.com/apfree/xfrpc.git
git@gitee.com:apfree/xfrpc.git
apfree
xfrpc
xfrpc
master

搜索帮助