encode

package
v0.0.0-...-2130a7a Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2018 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	CONNACK_ACCEPT_WITH_SESSION                  = CONNACK{0x20, 0x02, 0x01, 0x00}
	CONNACK_ACCEPT_WITHOUT_SESSION               = CONNACK{0x20, 0x02, 0x00, 0x00}
	CONNACK_REFUSE_UNACCEPTABLE_PROTOCOL_VERSION = CONNACK{0x20, 0x02, 0x00, 0x01}
	CONNACK_REFUSE_ID_REJECTED                   = CONNACK{0x20, 0x02, 0x00, 0x02}
	CONNACK_REFUSE_SERVICE_UNAVAILABLE           = CONNACK{0x20, 0x02, 0x00, 0x03}
	CONNACK_REFUSE_AUTH_FAIL                     = CONNACK{0x20, 0x02, 0x00, 0x04}
	CONNACK_REFUSE_NO_AUTH_FOUND                 = CONNACK{0x20, 0x02, 0x00, 0x05}
)

Functions

func RemainLength

func RemainLength(len uint32) (buf []byte)

Types

type CONNACK

type CONNACK []byte

Jump to

Keyboard shortcuts

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