netutil

package
v1.22.1 Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2022 License: BSD-3-Clause Imports: 3 Imported by: 28

Documentation

Overview

Package netutil contains misc shared networking code & types.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewOneConnListener

func NewOneConnListener(c net.Conn, addr net.Addr) net.Listener

NewOneConnListener returns a net.Listener that returns c on its first Accept and EOF thereafter.

The returned Listener's Addr method returns addr if non-nil. If nil, Addr returns a non-nil dummy address instead.

Types

This section is empty.

Jump to

Keyboard shortcuts

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