Documentation
¶
Overview ¶
Package netx provides high-performance networking primitives.
Index ¶
Constants ¶
View Source
const ( // TCPBufferSize is the socket buffer size for high throughput (512KB). TCPBufferSize = 512 * 1024 // KeepAliveInterval for TCP keepalive probes. KeepAliveInterval = 30 * time.Second // LingerTimeout for graceful close. LingerTimeout = 3 )
View Source
const DialTimeout = 10 * time.Second
DialTimeout is the default timeout for establishing connections.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Conn ¶
type Conn interface {
net.Conn
CloseRead() error
CloseWrite() error
SyscallConn() (syscall.RawConn, error)
}
Conn wraps net.TCPConn with half-close support.
Click to show internal directories.
Click to hide internal directories.