Accumulating echo server using Rust's mio
Rust
Latest commit d305821 Dec 1, 2016 @hjr3 committed on GitHub Merge pull request #15 from salpalvv/master
fixing mispelling and made some editing for readability
Permalink
Failed to load latest commit information.
src .ok().expect() isn't necessary as you can call .expect() directly on … Nov 29, 2016
.gitignore
.travis.yml
Cargo.lock
Cargo.toml
README.md

README.md

mob

A multi-echo server written in Rust using the mio async-io library.

Build Status

  • master branch is currently setup to work against the master branch of mio (aka 0.6.0-dev)
  • 0.5 branch is setup to work against the 0.5 branch of mio

Install

Run cargo build to build both mob-server and mob-client.

Client

The client is just a very simple way to send a bunch of messages to the server.

Logging

I use the env_logger crate. Logging can be turned on for mob-server with:

RUST_LOG=mob_server ./target/debug/mob-server  

If you want to see the log output from mio as well, you can do:

RUST_LOG=mob_server,mio ./target/debug/mob-server

Docker

docker run --rm -it -v $(pwd):/source schickling/rust cargo run --bin mob-server