connutils

package
v1.3.8 Latest Latest
Warning

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

Go to latest
Published: May 1, 2024 License: BSD-3-Clause Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsNoStatConn

func IsNoStatConn(addr string) bool

IsNoStatConn 检查是否为不统计连接

func NewNoStat

func NewNoStat(rawConn net.Conn) net.Conn

Types

type NoStatConn

type NoStatConn struct {
	// contains filtered or unexported fields
}

func (*NoStatConn) Close

func (this *NoStatConn) Close() error

func (*NoStatConn) LocalAddr

func (this *NoStatConn) LocalAddr() net.Addr

func (*NoStatConn) Read

func (this *NoStatConn) Read(b []byte) (n int, err error)

func (*NoStatConn) RemoteAddr

func (this *NoStatConn) RemoteAddr() net.Addr

func (*NoStatConn) SetDeadline

func (this *NoStatConn) SetDeadline(t time.Time) error

func (*NoStatConn) SetReadDeadline

func (this *NoStatConn) SetReadDeadline(t time.Time) error

func (*NoStatConn) SetWriteDeadline

func (this *NoStatConn) SetWriteDeadline(t time.Time) error

func (*NoStatConn) Write

func (this *NoStatConn) Write(b []byte) (n int, err error)

Jump to

Keyboard shortcuts

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