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 ¶
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.
Click to show internal directories.
Click to hide internal directories.