public class PingReqPacket extends GenericPacket
flags, fromMQTT_CHARSET, pTYpeNames| Constructor and Description |
|---|
PingReqPacket()
Create packet tto be sent.
|
PingReqPacket(byte[] raw,
byte flags,
IPacketAddress from)
Construct from incoming UDP data.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getType()
Get packet type byte, as sent over the net (& 0xF0).
|
byte[] |
toBytes()
Generate network representation of packet to be sent.
|
String |
toString() |
applyTTRs, getFlags, getFrom, getPacketNumber, getReplyToPacketNumber, recv, recvSocket, send, send, send, send, setPacketNumber, setReplyToPacketNumberclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitdecodeTopicLen, decodeTTRs, encodeTotalLength, encodeTTR, fromBytes, getPacketTypeNamepublic PingReqPacket(byte[] raw,
byte flags,
IPacketAddress from)
raw - Data from UDP packet, starting after packet type and length.flags - Flags from packet header.from - Source IP address.public PingReqPacket()
public byte[] toBytes()
IPacketpublic int getType()
IPacketpublic String toString()
toString in class GenericPacketCopyright © 2019. All rights reserved.