struct MQTT::Protocol::Publish

Defined in:

mqtt/protocol/packets/publish.cr

Constant Summary

TYPE = 3_u8

Constructors

Class Method Summary

Instance Method Summary

Instance methods inherited from struct MQTT::Protocol::Packet

bytesize : UInt32 bytesize, initialize initialize, remaining_length : UInt32 remaining_length, to_io(io : MQTT::Protocol::IO) to_io

Constructor methods inherited from struct MQTT::Protocol::Packet

from_io(io : ::IO) : Packet
from_io(io : MQTT::Protocol::IO) : Packet
from_io
, new new

Constructor Detail

def self.new(topic : String, payload : Bytes, packet_id : UInt16 | Nil, dup : Bool, qos : UInt8, retain : Bool) #

[View source]

Class Method Detail

def self.from_io(io : MQTT::Protocol::IO, flags : Flags, remaining_length : UInt32) #

[View source]

Instance Method Detail

def dup? : Bool #

[View source]
def packet_id : UInt16? #

[View source]
def payload : Slice(UInt8) #

[View source]
def qos : UInt8 #

[View source]
def remaining_length : UInt32 #

[View source]
def retain? : Bool #

[View source]
def to_io(io) #

[View source]
def topic : String #

[View source]