Skip to content

Instantly share code, notes, and snippets.

@machee
machee / tcp-echo.rs
Last active December 19, 2015 10:58
TCP Echo Server in Rust
/**
* Rust v0.7
*/
extern mod extra;
use std::{comm, result};
use extra::{net_ip, net_tcp, uv};
fn main() {
/**
* For
* https://github.com/mozilla/rust/issues/3599
*
* Based on
* https://github.com/mozilla/rust/blob/f19fb2459f4fc695225f996692a6a6b30b801ee9/src/libextra/flatpipes.rs#L764
*
* Rust v0.7
*/