netlib

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	EClosed = errors.New("channel closed")
)
View Source
var (
	ENoValidAddress = errors.New("no valid address")
)

Functions

func GetIPMaskRoute added in v0.0.33

func GetIPMaskRoute() (string, string, string)

func InterfaceAddrs added in v0.0.32

func InterfaceAddrs() ([]net.Addr, error)

func InterfaceAddrsFilter added in v0.0.32

func InterfaceAddrsFilter(mustUp, noLoopback bool) ([]net.Addr, error)

func InterfaceCheckIPContains added in v0.0.32

func InterfaceCheckIPContains(ip string) bool

func SplitHostPort added in v0.0.33

func SplitHostPort(v interface{}) (string, int, error)

Types

type ListenerWithInput

type ListenerWithInput interface {
	net.Listener

	Input(net.Conn) error
}

func NewChanListener

func NewChanListener(addr net.Addr, size int) ListenerWithInput

Jump to

Keyboard shortcuts

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