# MiniUpper **Repository Path**: jrwzcn/mini-upper ## Basic Information - **Project Name**: MiniUpper - **Description**: 上位机WinForm的demo,目前实现了TCP server/client 粘包问题的解决方案的demo. 后续有空会增加更多功能的demo. - **Primary Language**: C# - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 1 - **Created**: 2026-07-01 - **Last Updated**: 2026-07-01 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # MiniUpper 上位机 WinForm Demo #### 介绍 上位机 WinForm Demo,演示 TCP 通信、粘包处理、心跳机制等核心功能。 #### 软件架构 - **MiniUpper.Client** - WinForm 上位机(TCP Client) - **MiniUpper.Server** - Console 模拟下位机(TCP Server) - **MiniUpper.Common** - 共享类库(TcpSender/TcpReceiver) #### 技术栈 - .NET Framework 4.8 - MSBuild 构建 #### 编译 ```bash MSBuild.exe MiniUpper.sln -t:Build -p:Configuration=Debug ``` #### 运行 1. 启动 Server:`MiniUpper.Server\bin\Debug\net48\MiniUpper.Server.exe` 2. 启动 Client:`MiniUpper.Client\bin\Debug\net48\MiniUpper.Client.exe` 3. Client 连接 `127.0.0.1:5000` #### 协议 - 格式:[4字节大端长度头] + [Body] - 心跳:空消息,Server 回复 0x80