Documentation
¶
Overview ¶
Package listener has code to listen for device connections and setup sessions for them.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DeviceListener ¶
DeviceListener listens and setup sessions from device connections.
func DeviceListen ¶
func DeviceListen(cfg DeviceListenerConfig) (*DeviceListener, error)
DeviceListen creates a DeviceListener for device connections based on config.
func (*DeviceListener) AcceptLoop ¶
AcceptLoop accepts connections and starts sessions for them.
type DeviceListenerConfig ¶
type DeviceListenerConfig interface { // Addr to listen on. Addr() string // TLS key KeyPEMBlock() []byte // TLS cert CertPEMBlock() []byte }
A DeviceListenerConfig offers the DeviceListener configuration.
Click to show internal directories.
Click to hide internal directories.