Documentation ¶
Overview ¶
Package net implements the MQTT network layer on top of the standard library "net" package.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Conn ¶
type Conn interface { Close() error LocalAddr() net.Addr RemoteAddr() net.Addr NetConn() net.Conn Transport() string Send(pkt packet.ControlPacket) error Receive() (packet.ControlPacket, error) SetReadTimeout(d time.Duration) }
Conn wraps net.Conn with mqtt-specific functions.
func DialContext ¶
DialContext acts like Dial but takes a context.
Click to show internal directories.
Click to hide internal directories.