Documentation ¶
Index ¶
- func NewConn(conn net.Conn, r io.ReadCloser, w io.WriteCloser) net.Conn
- func SetLinger(c interface{}, sec int) error
- func SetNoDelay(conn interface{}, noDelay bool) error
- func SetSetReadDeadline(c interface{}, t time.Time) error
- func SetWriteDeadline(c interface{}, t time.Time) error
- type Conn
- type SetLingerer
- type SetNoDelayer
- type SetReadBuffer
- type SetReadBufferer
- type SetReadDeadlineer
- type SetWriteBufferer
- type SetWriteDeadlineer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewConn ¶
func NewConn(conn net.Conn, r io.ReadCloser, w io.WriteCloser) net.Conn
func SetNoDelay ¶
开关 Delay 算法 noDelay = true 关闭 false 性能更好,但是延迟高
func SetSetReadDeadline ¶
func SetWriteDeadline ¶
Types ¶
type SetLingerer ¶
type SetNoDelayer ¶
type SetReadBuffer ¶
type SetReadBufferer ¶
type SetReadDeadlineer ¶
type SetWriteBufferer ¶
type SetWriteDeadlineer ¶
Click to show internal directories.
Click to hide internal directories.