Interface IPacket

    • Method Detail

      • getPayload

        IPacket getPayload()
        Obtain the packet payload.
        Returns:
        the payload
      • setPayload

        IPacket setPayload​(IPacket packet)
        Assign the packet payload.
        Parameters:
        packet - new payload
        Returns:
        self
      • getParent

        IPacket getParent()
        Obtain the parent packet.
        Returns:
        parent packet
      • setParent

        IPacket setParent​(IPacket packet)
        Configure a new parent packet.
        Parameters:
        packet - new parent
        Returns:
        self
      • resetChecksum

        void resetChecksum()
        Reset any checksum as needed, and call resetChecksum on all parents.
      • serialize

        byte[] serialize()
        Sets all payloads parent packet if applicable, then serializes this packet and all payloads.
        Returns:
        a byte[] containing this packet and payloads