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 // Trigger the actual request state to get updated
12 handleUpdateRequests()
13 // Whether the outstanding local request cardinality is low enough to warrant an update.
14 isLowOnRequests() bool
15 writeInterested(interested bool) bool
17 // Neither of these return buffer room anymore, because they're currently both posted. There's
18 // also PeerConn.writeBufferFull for when/where it matters.
19 _cancel(RequestIndex) bool
20 _request(Request) bool
22 connectionFlags() string
24 onGotInfo(*metainfo.Info)
27 connStatusString() string