Documentation ¶
Index ¶
- type PiecePicker
- func (p *PiecePicker) Available() uint32
- func (p *PiecePicker) HandleAllowedFast(pe *peer.Peer, i uint32)
- func (p *PiecePicker) HandleCancelDownload(pe *peer.Peer, i uint32)
- func (p *PiecePicker) HandleChoke(pe *peer.Peer, i uint32)
- func (p *PiecePicker) HandleDisconnect(pe *peer.Peer)
- func (p *PiecePicker) HandleHave(pe *peer.Peer, i uint32)
- func (p *PiecePicker) HandleSnubbed(pe *peer.Peer, i uint32)
- func (p *PiecePicker) HandleUnchoke(pe *peer.Peer, i uint32)
- func (p *PiecePicker) PickFor(pe *peer.Peer) (pp *piece.Piece, allowedFast bool)
- func (p *PiecePicker) RequestedPeers(i uint32) []*peer.Peer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PiecePicker ¶
type PiecePicker struct {
// contains filtered or unexported fields
}
func (*PiecePicker) Available ¶
func (p *PiecePicker) Available() uint32
func (*PiecePicker) HandleAllowedFast ¶
func (p *PiecePicker) HandleAllowedFast(pe *peer.Peer, i uint32)
func (*PiecePicker) HandleCancelDownload ¶
func (p *PiecePicker) HandleCancelDownload(pe *peer.Peer, i uint32)
func (*PiecePicker) HandleChoke ¶ added in v0.3.0
func (p *PiecePicker) HandleChoke(pe *peer.Peer, i uint32)
func (*PiecePicker) HandleDisconnect ¶
func (p *PiecePicker) HandleDisconnect(pe *peer.Peer)
func (*PiecePicker) HandleHave ¶
func (p *PiecePicker) HandleHave(pe *peer.Peer, i uint32)
func (*PiecePicker) HandleSnubbed ¶
func (p *PiecePicker) HandleSnubbed(pe *peer.Peer, i uint32)
func (*PiecePicker) HandleUnchoke ¶ added in v0.3.0
func (p *PiecePicker) HandleUnchoke(pe *peer.Peer, i uint32)
func (*PiecePicker) RequestedPeers ¶
func (p *PiecePicker) RequestedPeers(i uint32) []*peer.Peer
Click to show internal directories.
Click to hide internal directories.