fakenet

package
Version: v0.0.0-...-5dca613 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2020 License: BSD-3-Clause Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewConn

func NewConn(name string, in io.ReadCloser, out io.WriteCloser) net.Conn

NewConn returns a net.Conn built on top of the supplied reader and writer. It decouples the read and write on the conn from the underlying stream to enable Close to abort ones that are in progress. It's primary use is to fake a network connection from stdin and stdout.

Types

This section is empty.

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto