Documentation ¶
Index ¶
Constants ¶
View Source
const ( MinimumBlockSize = 512 // This is the minimum value that works in practice, else the client stops with "invalid argument" MaximumBlockSize = 4096 // This is the maximum value that works in practice, else the client stops with "invalid argument" )
Variables ¶
View Source
var ( ErrUnsupportedNetwork = errors.New("unsupported network") ErrUnknownReply = errors.New("unknown reply") ErrUnknownInfo = errors.New("unknown info") ErrUnknownErr = errors.New("unknown error") ErrUnsupportedServerBlockSize = errors.New("server proposed unsupported block size") ErrMinimumBlockSize = errors.New("block size below mimimum requested") ErrMaximumBlockSize = errors.New("block size above maximum requested") ErrBlockSizeNotPowerOfTwo = errors.New("block size is not a power of 2") )
Functions ¶
func Disconnect ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.