Struct bip_handshake::HandshakerBuilder [] [src]

pub struct HandshakerBuilder { /* fields omitted */ }

Build configuration for Handshaker object creation.

Methods

impl HandshakerBuilder
[src]

Create a new HandshakerBuilder.

Address that the host will listen on.

Defaults to IN_ADDR_ANY using port 0 (any free port).

Port that external peers should connect on.

Defaults to the port that is being listened on (will only work if the host is not natted).

Peer id that will be advertised when handshaking with other peers.

Defaults to a random SHA-1 hash; official clients should use an encoding scheme.

See http://www.bittorrent.org/beps/bep_0020.html.

Extensions supported by our client, advertised to the peer when handshaking.

Configuration that will be used to alter the internal behavior of handshaking.

This will typically not need to be set unless you know what you are doing.

Build a Handshaker over the given Transport with a Remote instance.

Trait Implementations

impl Copy for HandshakerBuilder
[src]

impl Clone for HandshakerBuilder
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more