struct MQTT::Protocol::Connect

Defined in:

mqtt/protocol/packets/connect.cr

Constant Summary

TYPE = 1_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(client_id : String, clean_session : Bool, keepalive : UInt16, username : Nil | String, password : Slice(UInt8) | Nil, will : MQTT::Protocol::Will | Nil) #

[View source]

Class Method Detail

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

[View source]

Instance Method Detail

def clean_session? : Bool #

[View source]
def client_id : String #

[View source]
def keepalive : UInt16 #

[View source]
def password : Slice(UInt8)? #

[View source]
def to_io(io) #

[View source]
def username : String? #

[View source]
def will : MQTT::Protocol::Will? #

[View source]