conns

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: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var SharedMap = NewMap()

Functions

This section is empty.

Types

type LingerConn added in v0.6.0

type LingerConn interface {
	SetLinger(sec int) error
}

type Map

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

func NewMap

func NewMap() *Map

func (*Map) Add

func (this *Map) Add(conn net.Conn)

func (*Map) AllConns

func (this *Map) AllConns() []net.Conn

func (*Map) CloseIPConns

func (this *Map) CloseIPConns(ip string)

func (*Map) CountIPConns

func (this *Map) CountIPConns(ip string) int

func (*Map) Remove

func (this *Map) Remove(conn net.Conn)

Jump to

Keyboard shortcuts

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