Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
Conn net.Conn
Bitfield bitfield.Bitfield
PeerID [20]byte
InfoHash [20]byte
Peer peers.Peer
// Choked is true if the peer is choked
Choked bool
}
func (*Client) SendInterested ¶
SendInterested sends an Interested message to the peer
func (*Client) SendNotInterested ¶
SendNotInterested sends a NotInterested message to the peer
func (*Client) SendRequest ¶
func (*Client) SendUnchoke ¶
SendUnchoke sends an Unchoke message to the peer
Click to show internal directories.
Click to hide internal directories.