]> Sergey Matveev's repositories - btrtrc.git/blob - peer-impl.go
Remove unused peerImpl methods
[btrtrc.git] / peer-impl.go
1 package torrent
2
3 import (
4         "github.com/anacrolix/torrent/metainfo"
5 )
6
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         updateRequests(reason string)
12         writeInterested(interested bool) bool
13
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.
16         _cancel(RequestIndex) bool
17         _request(Request) bool
18
19         connectionFlags() string
20         onClose()
21         onGotInfo(*metainfo.Info)
22         drop()
23         String() string
24         connStatusString() string
25 }