Struct bip_handshake::CompleteMessage
[−]
[src]
pub struct CompleteMessage<S> { /* fields omitted */ }
Message containing completed handshaking information.
Methods
impl<S> CompleteMessage<S>
[src]
fn new(
prot: Protocol,
ext: Extensions,
hash: InfoHash,
pid: PeerId,
addr: SocketAddr,
sock: S
) -> CompleteMessage<S>
[src]
prot: Protocol,
ext: Extensions,
hash: InfoHash,
pid: PeerId,
addr: SocketAddr,
sock: S
) -> CompleteMessage<S>
Create a new CompleteMessage
over the given socket S.
fn protocol(&self) -> &Protocol
[src]
Protocol that this peer is operating over.
fn extensions(&self) -> &Extensions
[src]
Extensions that both you and the peer support.
fn hash(&self) -> &InfoHash
[src]
Hash that the peer is interested in.
fn peer_id(&self) -> &PeerId
[src]
Id that the peer has given itself.
fn address(&self) -> &SocketAddr
[src]
Address the peer is connected to us on.
fn socket(&self) -> &S
[src]
Socket of some type S, that we use to communicate with the peer.
fn into_parts(self) -> (Protocol, Extensions, InfoHash, PeerId, SocketAddr, S)
[src]
Break the CompleteMessage
into its parts.