netutil

package
v0.0.0-...-6af2dc9 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2021 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DialTCP

func DialTCP(laddr, raddr string) ([]*net.TCPConn, error)

func DialUDP

func DialUDP(laddr, raddr string) ([]*net.UDPConn, error)

func GetAddr

func GetAddr(b []byte) (srcAddr string, dstAddr string, proto waterutil.IPProtocol)

func ListenTCP

func ListenTCP(laddr string) ([]*net.TCPListener, error)

func ListenUDP

func ListenUDP(laddr string) ([]*net.UDPConn, error)

func RemovePort

func RemovePort(addr string) string

func ResolveAddr

func ResolveAddr(network, address string) (net.Addr, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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