Documentation ¶
Index ¶
Constants ¶
View Source
const MessageDeliveryAttempts = 3
View Source
const MessageDeliveryTimeout = 5 * time.Second
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ClientMessageSender ¶
func NewClientMessageSender ¶
func NewClientMessageSender(conn net.Conn) *ClientMessageSender
func (*ClientMessageSender) Close ¶
func (cms *ClientMessageSender) Close()
func (*ClientMessageSender) ProcessControlMessage ¶
func (cms *ClientMessageSender) ProcessControlMessage(messageID uint16, messageType byte)
func (*ClientMessageSender) Publish ¶
func (cms *ClientMessageSender) Publish(topic string, qos byte, retained bool, payload []byte)
func (*ClientMessageSender) SendPacket ¶
func (cms *ClientMessageSender) SendPacket(packet packets.ControlPacket)
Click to show internal directories.
Click to hide internal directories.