client_message_sender

package
v0.0.0-...-bfdebff Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 18, 2022 License: GPL-3.0 Imports: 5 Imported by: 0

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

type ClientMessageSender struct {
	sync.RWMutex
	// contains filtered or unexported fields
}

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)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL