pipeconn

package
v0.3.11 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	// Network is the network reported by a pipe's address.
	Network = "pipe"
)

Variables

View Source
var (
	// ErrClosed indicates that a call to Accept() failed because the listener was closed
	ErrClosed = errors.New("listener was closed")

	// ErrAlreadyClosed indicates that a call to Close() failed because the listener had already been closed.
	ErrAlreadyClosed = errors.New("already closed")
)

Functions

This section is empty.

Types

type DialContextFunc

type DialContextFunc func(context.Context) (net.Conn, error)

DialContextFunc is a function for dialing a pipe listener.

func NewPipeListener

func NewPipeListener() (net.Listener, DialContextFunc)

NewPipeListener returns a net.Listener that accepts connections which are local pipe connections (i.e., via net.Pipe()). It also returns a function that implements a context-aware dial.

Jump to

Keyboard shortcuts

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