Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrNilListener = errors.New("nil listener")
)
errors returned by scanner
Functions ¶
This section is empty.
Types ¶
type Scanner ¶
type Scanner interface { io.Closer Scan() bool Conn() net.Conn Listener() net.Listener Err() error }
Scanner provides a convenient interface for accepting connection from a net listener.
func NewScanner ¶
NewScanner creates a Scanner from the provided listener. Don't call Close method if you want to close the listener by yourself.
Click to show internal directories.
Click to hide internal directories.