Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type CacheTracker ¶
type CacheTracker struct { *Tracker // contains filtered or unexported fields }
The CacheTracker is component which allows usage of bias neighbour election together with the CacheTorrent protocol.
func (*CacheTracker) Neighbours ¶
func (t *CacheTracker) Neighbours(id string) interface{}
func (*CacheTracker) New ¶
func (t *CacheTracker) New(util TorrentNodeUtil) TorrentNode
func (*CacheTracker) OnJoin ¶
func (t *CacheTracker) OnJoin()
func (*CacheTracker) Recv ¶
func (t *CacheTracker) Recv(m interface{})
type Tracker ¶
The Tracker implements the biased selection protocol. Instead of providing unbiased selection, when asked for a node's neighbours the Tracker returns KPercent% external(different ISP) neighbours and (100 - KPercent)% internal neighbours.
func (*Tracker) Neighbours ¶
Click to show internal directories.
Click to hide internal directories.