Documentation ¶
Overview ¶
Package bufconn provides a net.Conn implemented by a buffer and related dialing and listening functionality.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Listener ¶
type Listener struct {
// contains filtered or unexported fields
}
Listener implements a net.Listener that creates local, buffered net.Conns via its Accept and Dial method.
func Listen ¶
Listen returns a Listener that can only be contacted by its own Dialers and creates buffered connections between the two.
func (*Listener) Accept ¶
Accept blocks until Dial is called, then returns a net.Conn for the server half of the connection.
func (*Listener) Addr ¶
Addr reports the address of the listener.
Click to show internal directories.
Click to hide internal directories.