public interface IPacket
Modifier and Type | Method and Description |
---|---|
IPacket |
getParent()
Obtain the parent packet.
|
IPacket |
getPayload()
Obtain the packet payload.
|
void |
resetChecksum()
Reset any checksum as needed, and call resetChecksum on all parents.
|
byte[] |
serialize()
Sets all payloads parent packet if applicable, then serializes this
packet and all payloads.
|
IPacket |
setParent(IPacket packet)
Configure a new parent packet.
|
IPacket |
setPayload(IPacket packet)
Assign the packet payload.
|
IPacket getPayload()
IPacket setPayload(IPacket packet)
packet
- new payloadIPacket getParent()
IPacket setParent(IPacket packet)
packet
- new parentvoid resetChecksum()
byte[] serialize()