nettool

package
v0.5.14 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 21, 2019 License: GPL-2.0 Imports: 1 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetLinger

func SetLinger(c interface{}, sec int) error

func SetNoDelay

func SetNoDelay(conn interface{}, noDelay bool) error

开关 Delay 算法 noDelay = true 关闭 false 性能更好,但是延迟高

Types

type SetLingerer

type SetLingerer interface {
	SetLinger(sec int) error
}

type SetNoDelayer

type SetNoDelayer interface {
	SetNoDelay(noDelay bool) error
}

type SetReadBuffer

type SetReadBuffer interface {
	SetReadBuffer(bytes int) error
}

type SetReadBufferer

type SetReadBufferer interface {
	SetReadBuffer(bytes int) error
}

type SetWriteBufferer

type SetWriteBufferer interface {
	SetWriteBuffer(bytes int) error
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL