Documentation ¶
Index ¶
- Variables
- type Conn
- type ErrProtoNotMatched
- type ErrorHandler
- type Listener
- func (m *Listener) Accept() (net.Conn, error)
- func (m *Listener) Addr() net.Addr
- func (m *Listener) Close() error
- func (m *Listener) HandleError(h ErrorHandler)
- func (m *Listener) Proto(proto ...Proto) net.Listener
- func (m *Listener) Serve() error
- func (m *Listener) ServeCallback(proto Proto, serve func(l net.Listener) error)
- func (m *Listener) SetReadTimeout(t time.Duration)
- type Proto
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrListenerClosed = errListenerClosed("listener: listener closed")
ErrListenerClosed is returned from muxListener.Accept when the underlying listener is closed.
Functions ¶
This section is empty.
Types ¶
type ErrProtoNotMatched ¶
type ErrProtoNotMatched struct {
// contains filtered or unexported fields
}
func (ErrProtoNotMatched) Error ¶
func (e ErrProtoNotMatched) Error() string
func (ErrProtoNotMatched) Temporary ¶
func (e ErrProtoNotMatched) Temporary() bool
Temporary implements the net.Error interface.
func (ErrProtoNotMatched) Timeout ¶
func (e ErrProtoNotMatched) Timeout() bool
Timeout implements the net.Error interface.
type ErrorHandler ¶
type Listener ¶
type Listener struct {
// contains filtered or unexported fields
}
func (*Listener) HandleError ¶
func (m *Listener) HandleError(h ErrorHandler)
func (*Listener) ServeCallback ¶
func (*Listener) SetReadTimeout ¶
Click to show internal directories.
Click to hide internal directories.