styx: aqwari.net/net/styx/internal/netutil Index | Files

package netutil

import "aqwari.net/net/styx/internal/netutil"

Package netutil contains useful types for testing network services.

Index

Package Files

listener.go

type PipeListener Uses

type PipeListener struct {
    // contains filtered or unexported fields
}

PipeListener is a net.Listener that does not need permission to bind to a port or create a socket file. Useful for testing in heavily sandboxed environments or intra-process communication.

func (*PipeListener) Accept Uses

func (l *PipeListener) Accept() (net.Conn, error)

Accept accepts a new connection on a PipeListener. Accept blocks until a new connection is made or the PipeListener is closed.

func (*PipeListener) Addr Uses

func (l *PipeListener) Addr() net.Addr

func (*PipeListener) Close Uses

func (l *PipeListener) Close() error

Close closes a PipeListener. The returned error will always be nil.

func (*PipeListener) Dial Uses

func (l *PipeListener) Dial() (net.Conn, error)

Package netutil imports 3 packages (graph). Updated 2018-04-15. Refresh now. Tools for package owners.