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 {
12 writeInterested(interested bool) bool
14 // Neither of these return buffer room anymore, because they're currently both posted. There's
15 // also PeerConn.writeBufferFull for when/where it matters.
19 connectionFlags() string
21 onGotInfo(*metainfo.Info)
24 connStatusString() string
25 writeBufferFull() bool