netx

package
v0.0.0-...-7571207 Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2024 License: MPL-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NetIP

func NetIP(addr net.Addr) (ip net.IP, err error)

NetIP returns the IP address of the network address.

func NetIPPort

func NetIPPort(addr net.Addr) (ip net.IP, port int, err error)

NetIPPort returns the IP and Port of the network address

func NetPort

func NetPort(addr net.Addr) (port int, err error)

NetPort returns the port of the network address,

Types

type ContextDialer

type ContextDialer interface {
	DialContext(ctx context.Context, network, address string) (net.Conn, error)
}

ContextDialer missing interface from the net package.

Jump to

Keyboard shortcuts

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