Versions in this module Expand all Collapse all v0 v0.3.1 Jun 27, 2023 Changes in this version + func NewConn(name string, maxBuf int) (Conn, Conn) + func NewTCPConn(src, dst netip.AddrPort, maxBuf int) (local Conn, remote Conn) + type Conn interface + SetReadBlock func(bool) error + SetWriteBlock func(bool) error + type Listener struct + NewConn func(network, addr string, maxBuf int) (Conn, Conn) + func Listen(addr string) *Listener + func (l *Listener) Accept() (net.Conn, error) + func (l *Listener) Addr() net.Addr + func (l *Listener) Close() error + func (l *Listener) Dial(ctx context.Context, network, addr string) (_ net.Conn, err error) + type Pipe struct + func NewPipe(name string, maxBuf int) *Pipe + func (p *Pipe) Block() error + func (p *Pipe) Close() error + func (p *Pipe) Read(b []byte) (n int, err error) + func (p *Pipe) SetReadDeadline(t time.Time) error + func (p *Pipe) SetWriteDeadline(t time.Time) error + func (p *Pipe) Unblock() error + func (p *Pipe) Write(b []byte) (n int, err error)