Documentation ¶
Index ¶
Constants ¶
View Source
const UDP_DEFAULT_GC_INTERVAL = 10
View Source
const UDP_DEFAULT_GC_TIMEOUT = 30
Variables ¶
View Source
var ErrNetClosing = errors.New("use of closed network connection")
Functions ¶
Types ¶
type ProxyManager ¶
type ProxyManager interface { Add(src, dst, protocol string) error // add a new proxy StartAll() []error // start all proxy StopAll() []error // stop all proxy }
func GetProxyManager ¶
func GetProxyManager() ProxyManager
type TCP ¶
type TCP struct {
// contains filtered or unexported fields
}
定义TCP参数
func (*TCP) IsConnected ¶
Click to show internal directories.
Click to hide internal directories.