Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Peer ¶
type Peer interface { // Sends messages and set choking status of local peeer Choke() Unchoke() // Choking returns choke status of local peer Choking() bool // Interested returns interest status of remote peer Interested() bool // SetOptimistic sets the uptimistic unchoke status of peer SetOptimistic(value bool) // OptimisticUnchoked returns the value previously set by SetOptimistic Optimistic() bool DownloadSpeed() uint UploadSpeed() uint }
type Unchoker ¶
type Unchoker struct {
// contains filtered or unexported fields
}
func (*Unchoker) FastUnchoke ¶
func (*Unchoker) HandleDisconnect ¶
func (*Unchoker) TickUnchoke ¶
TickUnchoke must be called at every 10 seconds.
Click to show internal directories.
Click to hide internal directories.