Struct bip_handshake::HandshakerBuilder [] [src]

pub struct HandshakerBuilder { /* fields omitted */ }

Build configuration for Handshaker object creation.

Methods

impl HandshakerBuilder
[src]

[src]

Create a new HandshakerBuilder.

[src]

Address that the host will listen on.

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

[src]

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).

[src]

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.

[src]

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

[src]

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.

[src]

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

Trait Implementations

impl Copy for HandshakerBuilder
[src]

impl Clone for HandshakerBuilder
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more