tcputils

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jun 29, 2021 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const LocalhostWithRandomPort = "127.0.0.1:0"

LocalhostWithRandomPort contains localhost address with local port. See https://godoc.org/net#Listen for details.

Variables

This section is empty.

Functions

func Listener

func Listener(address string) (*net.TCPListener, error)

Listener returns a configured *net.TCPListener that listens on specified address.

func LocalListenerWithRandomPort

func LocalListenerWithRandomPort() (*net.TCPListener, error)

LocalListenerWithRandomPort returns a configured *net.TCPListener that listens on localhost with random port.

Types

This section is empty.

Jump to

Keyboard shortcuts

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