Lynn_tcp
English|简体中文
Lynn_tcp is a lightweight TCP server framework
Keywords
-
Lightweight: concise code that is easier to learn and use
-
Concurrent and Performance: Based on Tokio's excellent asynchronous performance, it is easy to achieve concurrent processing capabilities for multi-user links
-
Lower latency: Design with read and write separation to achieve lower latency
-
Security: Code written with strong typing and memory safety in Rust
tips: Lynn_tcp is mainly used for message forwarding and long link TCP game servers
Quickly develop suitable business scenarios based on frameworks
Different message parsing, communication data encryption, and other operations can be achieved through custom settings
Simple Use
Dependencies
Make sure you activated the features which you need of the lynn_tcp on Cargo.toml:
full features
Use cargo add lynn_tcp or:
lynn_tcp = "=1.1.9"
server feature
lynn_tcp =
client feature
lynn_tcp =
Server
use ;
async
pub async
pub async
pub async
Server with config
use ;
async
pub async
pub async
pub async
Client
use ;
async
Features
server: Provide customizable TCP services that can easily achieve multi-user long connections and concurrent processing capabilities, with services for different routesclient: Provides a custom TCP client that sends and receives messages to and from a TCP server
Road maps
Basic functions
✅ Tcp server
✅ Tcp client
✅ Custom message parsing
✅ Automatically clean sockets
✅ Routing service for asynchronous tasks
Note:
All Basic functions support on v1.0.0 and above
Extended functions
- Scheduled tasks
- Middleware
- Global database handle
- Communication data encryption
- Disconnecting reconnection mechanism
Note:
If you haven't seen clear instructions, it's currently unavailable and still under development
Flow chart

Release note
License
This project is licensed under the MIT license.
Contribution
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in Lynn_tcp by you, shall be licensed as MIT, without any additional terms or conditions.