routines

package
v0.2.6 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2019 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrInvalidConnectionType connection object is invalid
	ErrInvalidConnectionType = errors.New("connection object is invalid")
)

Functions

func GetMessageBuffer

func GetMessageBuffer(c io.Closer) ([]byte, error)

GetMessageBuffer read message from connection

func WriteMessage

func WriteMessage(conn io.Closer, msg mqttp.IFace) error

WriteMessage write message into connection

func WriteMessageBuffer

func WriteMessageBuffer(c io.Closer, b []byte) error

WriteMessageBuffer write buffered message into connection

Types

This section is empty.

Jump to

Keyboard shortcuts

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