4 "github.com/anacrolix/torrent/metainfo"
7 // Contains implementation details that differ between peer types, like Webseeds and regular
8 // BitTorrent protocol connections. Some methods are underlined so as to avoid collisions with
9 // legacy PeerConn methods.
10 type peerImpl interface {
11 onNextRequestStateChanged()
13 writeInterested(interested bool) bool
15 // Neither of these return buffer room anymore, because they're currently both posted. There's
16 // also PeerConn.writeBufferFull for when/where it matters.
18 _request(Request) bool
20 connectionFlags() string
22 onGotInfo(*metainfo.Info)
25 connStatusString() string
26 writeBufferFull() bool