1 2 3 4 5 6 7 8 9 10 11 12
pub struct HttpTracker { conn: TcpStream, dest: SocketAddr, peer_id: [u8,..20], info_hash: [u8,..20] } impl HttpTracker { //pub fn connect(url: &str, info_hash: &[u8]) -> IoResult<HttpTracker> { //} }