https://github.com/kerryjiang/supersocket
SuperSocket is a light weight, cross platform and extensible socket server application framework.
https://github.com/kerryjiang/supersocket
csharp realtime-communication socket socketserver tcp udp
Last synced: 2 days ago
JSON representation
SuperSocket is a light weight, cross platform and extensible socket server application framework.
- Host: GitHub
- URL: https://github.com/kerryjiang/supersocket
- Owner: kerryjiang
- License: apache-2.0
- Created: 2012-08-04T17:48:39.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2025-04-20T07:50:30.000Z (4 days ago)
- Last Synced: 2025-04-20T08:40:32.659Z (4 days ago)
- Topics: csharp, realtime-communication, socket, socketserver, tcp, udp
- Language: C#
- Homepage:
- Size: 26.7 MB
- Stars: 4,013
- Watchers: 274
- Forks: 1,156
- Open Issues: 207
-
Metadata Files:
- Readme: README.CN.md
- License: LICENSE
Awesome Lists containing this project
README
# SuperSocket
[](https://gitter.im/supersocket/community)
[](https://github.com/kerryjiang/SuperSocket/actions?query=workflow%3Abuild)
[](https://www.nuget.org/packages/SuperSocket/)
[](https://www.nuget.org/packages/SuperSocket)
[](https://996.icu/#/en_US)**SuperSocket** 是一个用于 .NET 的高性能、可扩展的套接字服务器应用程序框架。它为构建自定义网络通信应用程序提供了强大的架构,支持包括 TCP、UDP 和 WebSocket 在内的多种协议。
- **项目主页**: [https://www.supersocket.net/](https://www.supersocket.net/)
- **文档**: [https://docs.supersocket.net/](https://docs.supersocket.net/)
- **License**: [https://www.apache.org/licenses/LICENSE-2.0](https://www.apache.org/licenses/LICENSE-2.0)***SuperSocket 的主要特点包括:***
1. **灵活的管道架构:**
SuperSocket 实现了基于管道的处理模型,通过可自定义的过滤器高效处理传入数据。2. **协议抽象:**
该框架抽象了底层套接字操作,并为实现各种协议提供了简洁的接口。它内置支持 TCP、UDP、WebSocket 以及自定义协议。3. **中间件支持:**
可扩展的中间件系统,允许对连接和数据包进行自定义处理。4. **会话管理:**
SuperSocket 提供全面的会话处理功能,管理从建立到终止的连接生命周期。5. **命令处理系统:**
基于命令的处理模型,高效处理客户端请求。6. **WebSocket 支持:**
完整实现 WebSocket 协议,包括压缩等扩展功能。7. **现代 .NET 集成:**
SuperSocket 专为现代 .NET 构建,与 .NET 生态系统中的依赖注入、配置和日志记录功能无缝集成。8. **跨平台:**
作为 .NET 库,SuperSocket 可在 .NET 支持的所有平台上运行。8. **客户端支持:**
该框架包含用于建立与套接字服务器连接的客户端组件,包括代理功能。9. **高性能:**
SuperSocket 通过缓冲池和最小化内存分配,设计用于高吞吐量和低延迟场景,内存使用高效。***SuperSocket 适用于广泛的应用场景:***
* 包括实时通信系统
* IoT 设备连接
* 游戏服务器
* 聊天应用程序
* 以及任何需要自定义网络协议的场景---
##### Nuget Package
| Package | MyGet 测试版发布 | NuGet 稳定版发布 |
| :------|:------------:|:------------:|
| **SuperSocket.ProtoBase** | [](https://www.myget.org/feed/supersocket/package/nuget/SuperSocket.ProtoBase) | [](https://www.nuget.org/packages/SuperSocket.ProtoBase/)|
| **SuperSocket.Primitives** | [](https://www.myget.org/feed/supersocket/package/nuget/SuperSocket.Primitives) | [](https://www.nuget.org/packages/SuperSocket.Primitives/)|
| **SuperSocket.Connection** | [](https://www.myget.org/feed/supersocket/package/nuget/SuperSocket.Connection) | [](https://www.nuget.org/packages/SuperSocket.Connection/)|
| **SuperSocket.Kestrel** | [](https://www.myget.org/feed/supersocket/package/nuget/SuperSocket.Kestrel) | [](https://www.nuget.org/packages/SuperSocket.Kestrel/)|
| **SuperSocket.Server** | [](https://www.myget.org/feed/supersocket/package/nuget/SuperSocket.Server) | [](https://www.nuget.org/packages/SuperSocket.Server/)|
| **SuperSocket.Server.Abstractions** | [](https://www.myget.org/feed/supersocket/package/nuget/SuperSocket.Server.Abstractions) | [](https://www.nuget.org/packages/SuperSocket.Server.Abstractions/)|
| **SuperSocket.Command** | [](https://www.myget.org/feed/supersocket/package/nuget/SuperSocket.Command) | [](https://www.nuget.org/packages/SuperSocket.Command/)|
| **SuperSocket.Client** | [](https://www.myget.org/feed/supersocket/package/nuget/SuperSocket.Client) | [](https://www.nuget.org/packages/SuperSocket.Client/)|
| **SuperSocket.Client.Proxy** | [](https://www.myget.org/feed/supersocket/package/nuget/SuperSocket.Client.Proxy) | [](https://www.nuget.org/packages/SuperSocket.Client.Proxy/)|
| **SuperSocket.WebSocket** | [](https://www.myget.org/feed/supersocket/package/nuget/SuperSocket.WebSocket) | [](https://www.nuget.org/packages/SuperSocket.WebSocket/)|
| **SuperSocket.WebSocket.Server** | [](https://www.myget.org/feed/supersocket/package/nuget/SuperSocket.WebSocket.Server) | [](https://www.nuget.org/packages/SuperSocket.WebSocket.Server/)|
| **SuperSocket.Udp** | [](https://www.myget.org/feed/supersocket/package/nuget/SuperSocket.Udp) | [](https://www.nuget.org/packages/SuperSocket.Udp/)|
| **SuperSocket.SerialIO** | [](https://www.myget.org/feed/supersocket/package/nuget/SuperSocket.SerialIO) | [](https://www.nuget.org/packages/SuperSocket.SerialIO/)|Nightly build packages: https://www.myget.org/F/supersocket/api/v3/index.json
---
## SuperSocket 2.0 路线图:
- 2025:
- More documents
- Performance test/tuning
- Fix issues of the existing features
- Other features requested by users