Documentation ¶
Index ¶
Constants ¶
View Source
const ( MaxReceivePacketSize = 1452 // MTU(1500) - IPv6 - UDP HeaderSize = 32 MaxSegmentSize = MaxReceivePacketSize - HeaderSize DefaultRcvWnd = 4096 )
Variables ¶
View Source
var ( ErrTimeout = errors.New("operation timed out") ErrConnectionAborted = errors.New("connection aborted") ErrConnectionClosed = errors.New("connection closed") ErrClosedForSend = errors.New("connection is closed for send") ErrClosedForReceive = errors.New("connection is closed for receive") ErrConnectionReset = errors.New("connection reset by peer") ErrNoCipher = errors.New("cipher is nil") ErrIllegalSegment = errors.New("illegal segment") )
Functions ¶
This section is empty.
Types ¶
type BytesPool ¶
type BytesPool struct {
// contains filtered or unexported fields
}
func NewBytesPool ¶
type Cipher ¶
type Cipher struct {
// contains filtered or unexported fields
}
func (*Cipher) Clone ¶
func (c *Cipher) Clone(flag CipherFlag) *Cipher
type Listener ¶
type Listener struct {
// contains filtered or unexported fields
}
func (*Listener) SetReadBuffer ¶
func (*Listener) SetWriteBuffer ¶
Click to show internal directories.
Click to hide internal directories.