netpipe

package
v2.6.1 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrExceedMaxSize = fmt.Errorf("exceed max size")
View Source
var ErrPipeClosed = fmt.Errorf("pipe closed")
View Source
var ErrReadDeadline = fmt.Errorf("pipe read deadline exceeded")
View Source
var ErrWriteDeadline = fmt.Errorf("pipe write deadline exceeded")

Functions

func Pipe

func Pipe(maxSize int, addrs ...net.Addr) (net.Conn, net.Conn)

Pipe creates an async, in-memory, full duplex network connection; both ends implement the Conn interface. Reads on one end are matched with writes on the other, copying data directly between the two; there is an internal buffering of size.

Types

This section is empty.

Jump to

Keyboard shortcuts

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