struct

MQTT::Protocol::IO

Inherits Struct < Value < Object

Constructors

new(io : ::IO, max_packet_size : UInt32 | Nil = nil, byte_format = ::IO::ByteFormat::NetworkEndian)
Source

Instance methods

read_byte
Source
read_bytes(len : Int | Nil = nil)
Source
read_int
Source
read_packet
Source
read_remaining_length
Source
read_string(len : UInt16 | Nil = nil)
Source
write(packet : Packet)
Source
write_byte(b : UInt8)
Source
write_bytes(bytes : Bytes)
Source
write_bytes(bytes : Nil)
Source
write_bytes_raw(bytes : Bytes)
Source
write_int(int : Int)
Source
write_packet(packet : Packet)
Source
write_remaining_length(length)
Source
write_string(str : String)
Source
write_string(str : Nil)
Source

Macros

method_missing(call)
Source