| Package | Description |
|---|---|
| ru.dz.mqtt_udp |
Extremely simple MQTT-based protocol over an UDP broadcast transport.
|
| ru.dz.mqtt_udp.proto |
Protocol implementation details
|
| ru.dz.mqtt_udp.util |
| Modifier and Type | Method and Description |
|---|---|
static Collection<TaggedTailRecord> |
IPacket.decodeTTRs(byte[] raw,
int total_len,
int headerEnd,
int recvLen) |
| Modifier and Type | Method and Description |
|---|---|
static byte[] |
IPacket.encodeTotalLength(byte[] pkt,
int packetType,
byte flags,
AbstractCollection<TaggedTailRecord> ttr)
Rename to encodePacketHeader?
|
static byte[] |
IPacket.encodeTTR(AbstractCollection<TaggedTailRecord> ttrs,
byte[] packetBeginning)
Have 'classic' MQTT packet at input, extend it with Tagged Tail Records.
|
| Modifier and Type | Class and Description |
|---|---|
class |
TTR_AbstractInteger32
Abstract record with one integer in payload.
|
class |
TTR_AbstractInteger64
Abstract record with one 64 bit integer in payload.
|
class |
TTR_AbstractTimeDate
Abstract TTR carrying time/date with millisecond accuracy.
|
class |
TTR_Invalid |
class |
TTR_MeasureTimeDate
This TTR represents time and date of this packet's payload creation.
|
class |
TTR_PacketNumber |
class |
TTR_ProtocolTimeDate
This TTR represents time and date of this packet (not its payload) creation.
|
class |
TTR_ReplyTo
Number of packet that we reply to.
|
class |
TTR_Signature |
| Modifier and Type | Method and Description |
|---|---|
static TaggedTailRecord |
TaggedTailRecord.fromBytes(byte[] raw) |
| Modifier and Type | Method and Description |
|---|---|
static Collection<TaggedTailRecord> |
TaggedTailRecord.fromBytesAll(byte[] raw,
AtomicReference<Integer> signaturePos)
Decode tail of packet, all the attached TTRs.
|
| Modifier and Type | Method and Description |
|---|---|
IPacket |
GenericPacket.applyTTRs(Collection<TaggedTailRecord> ttrs)
Internal use only.
|
Copyright © 2019. All rights reserved.