-
Notifications
You must be signed in to change notification settings - Fork 360
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Snap Hutao × BetterGenshinImpact Tracker #762
Comments
实现细节基础通信使用两个命名管道进行全双工通信 SH 使用名称为 管道的连通由抽象的 // Any content will be placed after the header.
[StructLayout(LayoutKind.Sequential, Pack = 1)]
internal struct PipePacketHeader
{
public byte Version;
public PipePacketType Type;
public PipePacketCommand Command;
public PipePacketContentType ContentType;
public int ContentLength;
public ulong Checksum;
}
internal enum PipePacketType : byte
{
None = 0,
Request = 1,
Response = 2,
SessionTermination = 3,
} internal enum PipePacketCommand : byte
{
None = 0,
// 应且仅应使用这些 Command,未在此处写出的 Command 均由 SH/BGI 保留
BetterGenshinImpactToSnapHutaoRequest = 20,
BetterGenshinImpactToSnapHutaoResponse = 21,
SnapHutaoToBetterGenshinImpactRequest = 22,
SnapHutaoToBetterGenshinImpactResponse = 23,
} internal enum PipePacketContentType : byte
{
None = 0,
Json = 1,
} 在向管道写入 对于 会话(Session)为了最大限度避免因连接占用导致的死锁,使用 |
请求 (Request)对于SH与BGI间的任何请求,使用 |
The text was updated successfully, but these errors were encountered: