Skip to content

A minimal programming example for a chat server with Rust.

License

Notifications You must be signed in to change notification settings

zhihuij/smallchat_rust

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Smallchat with Rust

Inspired by antirez/smallchat.

Usage

Run the server:

cargo run --bin smallchat_server

Connect to the server with the client(can't be run inside IDE):

cargo run --bin smallchat_client 127.0.0.1 7711

then you can chat like in an IRC:

Welcome to Simple Chat! Use /nick <nick> to set your nick.
you> hello
user:5> hi
you> how are you?
user:5> fine, it's cold~
what' the whether like?

History

  • v0.0.1: Single thread version with std::net;
  • v0.0.2: Single thread version with mio;
  • v0.0.3: Client with raw mode console.

License

This project is licensed under the MIT license.

About

A minimal programming example for a chat server with Rust.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages