Documentation ¶
Overview ¶
The cmux package creates a multiplexer over connections. The point is to register accept/protocol handlers that can consume a few bytes of their traffic to determine if a connection matches their protocol. If so, handle it, otherwise move onto the next
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CMux ¶
type CMux struct {
// contains filtered or unexported fields
}
func (*CMux) RegisterProtocol ¶
func (c *CMux) RegisterProtocol(match ProtocolMatcher) (net.Listener, error)
type ProtocolMatcher ¶
Click to show internal directories.
Click to hide internal directories.