Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Closed = errs.New("listener closed")
Closed is returned by routed listeners when the mux is closed.
Functions ¶
This section is empty.
Types ¶
type Mux ¶
type Mux struct {
// contains filtered or unexported fields
}
Mux lets one multiplex a listener into different listeners based on the first bytes sent on the connection.
func New ¶
New creates a mux that reads the prefixLen bytes from any connections Accepted by the passed in listener and dispatches to the appropriate route.
Click to show internal directories.
Click to hide internal directories.