Versions in this module Expand all Collapse all v1 v1.0.0 Jan 20, 2024 Changes in this version + type Client struct + Bitfield bitfield.Bitfield + Choked bool + Conn net.Conn + func New(peer peers.Peer, peerID, infoHash [20]byte) (*Client, error) + func (c *Client) Read() (*message.Message, error) + func (c *Client) SendHave(index int) error + func (c *Client) SendInterested() error + func (c *Client) SendNotInterested() error + func (c *Client) SendRequest(index, begin, length int) error + func (c *Client) SendUnchoke() error