view src/main.rs @ 12:d680d7f1bec8 draft

Update dispatch and main for new Stream/Sink API
author Lewin Bormann <lbo@spheniscida.de>
date Sat, 03 Dec 2016 11:18:41 +0100
parents ec89c5375b21
children 08d04d44f86d
line wrap: on
line source

extern crate futures;
#[macro_use]
extern crate tokio_core;
extern crate tokio_uds;

mod config;
mod dgram_stream;
mod dispatch;
mod error;
mod priority;

fn main() {
    let mut cfg = config::Config::default();
    cfg.general.bind_path = "./test_log_sock.sock".to_string();
    cfg.general.max_msg_len = 2048;

    dispatch::setup_and_run(cfg).unwrap();
}