dummylistener

package
v0.0.0-...-f875fd1 Latest Latest
Warning

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

Go to latest
Published: Jun 23, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Listener

func Listener(ln net.Listener) (net.Listener, error)

Types

type DummyConn

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

func (*DummyConn) Close

func (cn *DummyConn) Close() error

func (*DummyConn) LocalAddr

func (cn *DummyConn) LocalAddr() net.Addr

func (*DummyConn) Read

func (cn *DummyConn) Read(b []byte) (int, error)

func (*DummyConn) RemoteAddr

func (cn *DummyConn) RemoteAddr() net.Addr

func (*DummyConn) SetDeadline

func (cn *DummyConn) SetDeadline(t time.Time) error

func (*DummyConn) SetReadDeadline

func (cn *DummyConn) SetReadDeadline(t time.Time) error

func (*DummyConn) SetWriteDeadline

func (cn *DummyConn) SetWriteDeadline(t time.Time) error

func (*DummyConn) Write

func (cn *DummyConn) Write(b []byte) (int, error)

type DummyListener

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

func (*DummyListener) Accept

func (ln *DummyListener) Accept() (net.Conn, error)

Accept waits for and returns the next connection to the listener.

func (*DummyListener) Addr

func (ln *DummyListener) Addr() net.Addr

Addr returns the listener's network address.

func (*DummyListener) Close

func (ln *DummyListener) Close() error

Close closes the listener. Any blocked Accept operations will be unblocked and return errors.

Jump to

Keyboard shortcuts

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