https://github.com/jimblandy/chat-mio
A trivial chat program in Rust, using the mio asynchronous I/O crate.
https://github.com/jimblandy/chat-mio
Last synced: 3 months ago
JSON representation
A trivial chat program in Rust, using the mio asynchronous I/O crate.
- Host: GitHub
- URL: https://github.com/jimblandy/chat-mio
- Owner: jimblandy
- Created: 2016-11-18T05:59:22.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2016-11-26T22:06:36.000Z (over 8 years ago)
- Last Synced: 2025-03-17T16:03:26.894Z (3 months ago)
- Language: Rust
- Size: 4.88 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# chat-mio
This is a trivial chat program written in Rust, using the `mio` crate for asynchronous I/O.
To try it out, open two terminal windows. In one, type:
$ cargo run -- --serve localhost:12345
In the other terminal window, type:
$ cargo run -- localhost:12345
Then, whatever you type at one will be printed by the other.
Hit end-of-file (ctrl-D) to leave the chat.You can accomplish exactly the same thing using no code at all with `nc`.
The point here was for me to get a feel for how mio works.