This commit is contained in:
yrx
2026-08-14 15:25:35 +08:00
parent e1f12ae609
commit 9be7cffbb2
86 changed files with 32670 additions and 3 deletions
+14
View File
@@ -0,0 +1,14 @@
#pragma once
#include <pybind11/pybind11.h>
#include <pybind11/stl.h> // 支持 std::vector, std::map 等
namespace py = pybind11;
namespace netcore {
// 打包 TCP 数据包
py::bytes make_packet(int msg_type, py::dict body_dict);
// 解包 TCP 数据包
py::tuple parse_packet(py::bytes data);
}