ibrahim-tcp 1.0.0

High-performance lightweight TCP protocol with reliability, compression, and fault tolerance
Documentation
1
2
3
4
5
6
7
8
9
10
use ibrahim_tcp::Client;
use std::env;

#[tokio::main]
async fn main() -> std::io::Result<()> {
    let args: Vec<String> = env::args().collect();
    let name = args.get(1).cloned().unwrap_or("Player".into());
    let client = Client::new("127.0.0.1:4000");
    client.run(&name).await
}