Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CompactResponse ¶
type CompactResponse struct { ResponseBase Peers []byte Peers6 []byte }
func (*CompactResponse) Convert ¶
func (cr *CompactResponse) Convert() *Response
type PeerPool ¶
type PeerPool struct {
// contains filtered or unexported fields
}
func NewPeerPool ¶
func NewPeerPool() *PeerPool
type ResponseBase ¶
type ResponseBase struct { FailureReason string WarningMessage string Interval uint64 MinInterval uint64 TrackerID string Complete uint32 Incomplete uint32 }
func (*ResponseBase) GetInterval ¶
func (rb *ResponseBase) GetInterval(min bool) uint64
func (*ResponseBase) Leechers ¶
func (rb *ResponseBase) Leechers() uint32
func (*ResponseBase) Seeders ¶
func (rb *ResponseBase) Seeders() uint32
type TrackerClientCollection ¶
type TrackerClientCollection struct {
// contains filtered or unexported fields
}
func NewTrackerClientCollection ¶
func NewTrackerClientCollection(mi *metainfo.Metainfo, cc *config.ClientConfig) *TrackerClientCollection
func (*TrackerClientCollection) RequestPeers ¶
func (tc *TrackerClientCollection) RequestPeers(downloaded, uploaded, left uint64) (seedernum uint32, leechernum uint32, peers *PeerPool)
Click to show internal directories.
Click to hide internal directories.