- mosh(blinksh/ios C++)+protobuf-lite 交叉编译为 MoshCore.xcframework (CommonCrypto 后端、含 arm64 模拟器 slice;绕 autotools 用 CMake 直编 + 手写 config.h) - tsnet 桥新增 UDP relay(StartMoshRelay:loopback↔tsnet.Dial 逐包搬运) - MoshSession(pipe↔FILE*/pthread/SIGWINCH)+ MoshConnectScanner(TXCore,+4 单测=39) - SSHTerminalModel 编排:SSH 引导 mosh-server→解析 MOSH CONNECT→relay→mosh 接管 - LAN 直连 + mosh-over-tsnet 均端到端验证通过,R1(tsnet UDP 数据报语义) 证伪 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
32 lines
1.2 KiB
C++
32 lines
1.2 KiB
C++
#include <Python.h>
|
|
|
|
#include "benchmarks.pb.h"
|
|
#include "datasets/google_message1/proto2/benchmark_message1_proto2.pb.h"
|
|
#include "datasets/google_message1/proto3/benchmark_message1_proto3.pb.h"
|
|
#include "datasets/google_message2/benchmark_message2.pb.h"
|
|
#include "datasets/google_message3/benchmark_message3.pb.h"
|
|
#include "datasets/google_message4/benchmark_message4.pb.h"
|
|
|
|
static struct PyModuleDef _module = {PyModuleDef_HEAD_INIT,
|
|
"libbenchmark_messages",
|
|
"Benchmark messages Python module",
|
|
-1,
|
|
NULL,
|
|
NULL,
|
|
NULL,
|
|
NULL,
|
|
NULL};
|
|
|
|
extern "C" {
|
|
PyMODINIT_FUNC PyInit_libbenchmark_messages() {
|
|
benchmarks::BenchmarkDataset().descriptor();
|
|
benchmarks::proto3::GoogleMessage1().descriptor();
|
|
benchmarks::proto2::GoogleMessage1().descriptor();
|
|
benchmarks::proto2::GoogleMessage2().descriptor();
|
|
benchmarks::google_message3::GoogleMessage3().descriptor();
|
|
benchmarks::google_message4::GoogleMessage4().descriptor();
|
|
|
|
return PyModule_Create(&_module);
|
|
}
|
|
}
|