Documentation ¶
Index ¶
Constants ¶
View Source
const MaxBacklog = 5
MaxBacklog is the number of unfulfilled requests a client can have in its pipeline
View Source
const MaxBlockSize = 16384
MaxBlockSize is the largest number of bytes a request can ask for
View Source
const MaxInPipeLine = 5
MaxInPipeLine is the maximum number of request that can be kept in queue waiting for them to be picked up by a worker
View Source
const MaxSize = 16384
MaxSize is the maximmum size we get request for from a peer in one request
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Peer ¶
Peer struct containg ip and port of the client
func DecodePeer ¶
DecodePeer takes the peers string and converts them into the an array of Peers struct
Click to show internal directories.
Click to hide internal directories.