Documentation ¶
Index ¶
- func Listener(ln net.Listener) (net.Listener, error)
- type DummyConn
- func (cn *DummyConn) Close() error
- func (cn *DummyConn) LocalAddr() net.Addr
- func (cn *DummyConn) Read(b []byte) (int, error)
- func (cn *DummyConn) RemoteAddr() net.Addr
- func (cn *DummyConn) SetDeadline(t time.Time) error
- func (cn *DummyConn) SetReadDeadline(t time.Time) error
- func (cn *DummyConn) SetWriteDeadline(t time.Time) error
- func (cn *DummyConn) Write(b []byte) (int, error)
- type DummyListener
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type DummyConn ¶
type DummyConn struct {
// contains filtered or unexported fields
}
func (*DummyConn) RemoteAddr ¶
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.
Click to show internal directories.
Click to hide internal directories.