effusion v0.2.0 Effusion.PWP.Messages.Handshake View Source

Encode and decode peer handshake messages.

Link to this section Summary

Functions

Extracts the peer id, info hash, and reserved bytes from a handshake packet binary.

Builds a handshake packet binary for the info hash and peer id.

Link to this section Functions

Extracts the peer id, info hash, and reserved bytes from a handshake packet binary.

Link to this function

encode(peer_id, info_hash, extensions \\ [])

View Source

Builds a handshake packet binary for the info hash and peer id.