start new:
tmux
start new with session name:
tmux new -s myname
| use futures::{Async, Future, Poll}; | |
| use tokio::io::{AsyncRead, AsyncWrite, Error, ReadHalf, WriteHalf}; | |
| use tokio::net::TcpStream; | |
| use warp::{path, Filter, Stream}; | |
| struct Receiver { | |
| rx: ReadHalf<TcpStream>, | |
| } | |
| impl Stream for Receiver { | |
| type Item = String; |
| /** | |
| * More info? | |
| * a.dotreppe@aspyct.org | |
| * http://aspyct.org | |
| * @aspyct (twitter) | |
| * | |
| * Hope it helps :) | |
| */ | |
| #include <stdio.h> |