Documentation
¶
Overview ¶
Package sockettest implements net.Listener and net.Conn types based on *socket.Conn for use in the package's tests.
Index ¶
- type Conn
- func (c *Conn) Close() error
- func (c *Conn) CloseRead() error
- func (c *Conn) CloseWrite() error
- func (c *Conn) Context(ctx context.Context) *Conn
- func (c *Conn) LocalAddr() net.Addr
- func (c *Conn) Read(b []byte) (int, error)
- func (c *Conn) RemoteAddr() net.Addr
- func (c *Conn) SetDeadline(t time.Time) error
- func (c *Conn) SetReadDeadline(t time.Time) error
- func (c *Conn) SetWriteDeadline(t time.Time) error
- func (c *Conn) Write(b []byte) (int, error)
- type Listener
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Conn ¶ added in v0.3.0
A Conn is a net.Conn which can be extended with context support.
func Dial ¶
Dial creates an IPv4 or IPv6 TCP net.Conn backed by a *socket.Conn with optional configuration.
func (*Conn) CloseWrite ¶ added in v0.3.0
func (*Conn) RemoteAddr ¶ added in v0.3.0
type Listener ¶ added in v0.3.0
type Listener struct {
// contains filtered or unexported fields
}
A Listener is a net.Listener which can be extended with context support.
func FileListener ¶ added in v0.2.0
FileListener creates an IPv6 TCP net.Listener backed by a *socket.Conn from the input file.
Click to show internal directories.
Click to hide internal directories.