protocol

package
v0.0.0-...-5753a94 Latest Latest
Warning

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

Go to latest
Published: May 12, 2024 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ExchangeFlag

type ExchangeFlag uint8

ExchangeFlag represents a exchange flag.

func (ExchangeFlag) IsAcknowledgement

func (flag ExchangeFlag) IsAcknowledgement() bool

IsAcknowledgement returns true if the flag is acknowledgement.

func (ExchangeFlag) IsInitiator

func (flag ExchangeFlag) IsInitiator() bool

IsInitiator returns true if the flag is initiator.

func (ExchangeFlag) IsReliability

func (flag ExchangeFlag) IsReliability() bool

IsReliability returns true if the flag is reliability.

func (ExchangeFlag) IsSecuredExtension

func (flag ExchangeFlag) IsSecuredExtension() bool

IsSecuredExtension returns true if the flag is secured extension.

func (ExchangeFlag) IsVendor

func (flag ExchangeFlag) IsVendor() bool

IsVendor returns true if the flag is vendor.

type ExchangeID

type ExchangeID uint16

ExchangeID represents a exchange ID.

type Header struct {
	ExchangeFlag ExchangeFlag
	Opcode       Opcode
	ExchangeID   ExchangeID
	VenderID     VenderID
	ProtocolID   ProtocolID
}

4.4.3. Protocol Header Field Descriptions Header represents a protocol header.

type Opcode

type Opcode uint8

Opcode represents a message opcode.

const (
	StatusResponseMessage    Opcode = 0x01
	ReadRequestMessage       Opcode = 0x02
	SubscribeRequestMessage  Opcode = 0x03
	SubscribeResponseMessage Opcode = 0x04
	ReportDataMessage        Opcode = 0x05
	WriteRequestMessage      Opcode = 0x06
	WriteResponseMessage     Opcode = 0x07
	InvokeRequestMessage     Opcode = 0x08
	InvokeResponseMessage    Opcode = 0x09
	TimedRequestMessage      Opcode = 0x0A
)

type ProtocolID

type ProtocolID uint16

4.4.3.4. Protocol ID (16 bits) ProtocolID represents a protocol ID.

type VenderID

type VenderID uint16

4.4.3.5. Protocol Vendor ID (16 bits) VendorID represents a vendor ID.

Jump to

Keyboard shortcuts

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