Skip to content

Instantly share code, notes, and snippets.

@jasonprado
jasonprado / main.rs
Created September 18, 2014 05:15
Sketch of an IRC BNC in Rust
use std::comm::Sender;
use std::io::net::tcp::TcpStream;
use std::io::{Listener, Acceptor};
use std::io::net::tcp::TcpListener;
use std::io::timer;
use std::time::duration::Duration;
// A sketch of the architecture for an IRC BNC that supports multiple client connections.
// I am curious if this is the optimal way to architect this kind of program.