Struct bip_handshake::BTPeer
[−]
[src]
pub struct BTPeer { /* fields omitted */ }
Bittorrent TCP peer that has been handshaken.
Methods
impl BTPeer
[src]
fn new(stream: TcpStream, hash: InfoHash, pid: PeerId) -> BTPeer
Create a new BTPeer container.
fn destroy(self) -> (TcpStream, InfoHash, PeerId)
Destroy the BTPeer container and return the contained objects.