KNX::HPAI
Inherits BinData < Reference < Object
Host Protocol Address Information
Constants
AFTER_DESERIALIZE = [] of Nil
Host Protocol Address Information
BEFORE_SERIALIZE = [] of Nil
Host Protocol Address Information
ENDIAN = ["big"]
Host Protocol Address Information
KLASS_NAME = [KNX::HPAI]
Host Protocol Address Information
LENGTH = 8
PARTS = [{type: "basic", name: length, cls: UInt8, onlyif: nil, verify: nil, value: nil, endian: nil}, {type: "enum", name: protocol, cls: typeof(ProtocolType::IPv4UDP.value),
onlyif: nil, verify: nil, value: nil, encoding: nil, enum_type: KNX::ProtocolType}, {type: "bytes", name: ip_addr, cls: Slice(UInt8), onlyif: nil, verify: nil, length: -> do
4
end,
value: nil}, {type: "basic", name: port, cls: UInt16, onlyif: nil, verify: nil, value: nil, endian: nil}] of Nil
Host Protocol Address Information
REMAINING = [] of Nil
Host Protocol Address Information
Constructors
new(ip : Socket::IPAddress)
SourceClass methods
Instance methods
__format__
A group or bit_field captures the endianness at its declaration point, so
declaring endian after one would silently leave it system-endian. Fail loudly.
ip_addr
ip_addr=(ip_addr : Bytes)
ip_address
Sourceip_address=(address : String)
Sourceip_address=(ip : Socket::IPAddress)
Sourcelength
length=(length : UInt8)
port
port=(port : UInt16)
protocol
protocol=(protocol : ProtocolType)