Documentation
¶
Overview ¶
Package dmsgctrl pkg/dmsg/dmsgctrl/control.go c1-net-dmsg
Package dmsgctrl pkg/dmsg/dmsgctrl/serve_listener.go c1-net-dmsg
Index ¶
Constants ¶
View Source
const ( PingType = PacketType(0x9) PongType = PacketType(0xA) )
Packet types
Variables ¶
View Source
var (
ErrClosed = errors.New("control is closed")
)
Associated errors.
Functions ¶
Types ¶
type Control ¶
type Control struct {
// contains filtered or unexported fields
}
Control wraps and takes over a dmsg.Stream and provides control features.
func ControlStream ¶
ControlStream wraps a dmsg.Stream and returns the Control.
func (*Control) Done ¶
func (c *Control) Done() <-chan struct{}
Done the returned channel unblocks when the control stops serving.
Click to show internal directories.
Click to hide internal directories.