Class ZrtpPacketBase

    • Constructor Detail

      • ZrtpPacketBase

        protected ZrtpPacketBase​(byte[] pb)
    • Method Detail

      • getHeaderBase

        public final byte[] getHeaderBase()
      • isZrtpPacket

        public final boolean isZrtpPacket()
        Check if packet buffer contains the generic ZRTP id field.
        Returns:
        true if packet buffer contains ZRTP id, false otherwise.
      • getLength

        public final short getLength()
      • getMessageType

        public final String getMessageType()
      • setZrtpId

        protected final void setZrtpId()
        Copy the unique ZRTP id into the ZRTP packer header
      • setLength

        protected final void setLength​(int length)
        Set the length of the packet (in ZRTP words) into the packet header. The method first converts the integer into network order.
        Parameters:
        length - The length of the packet in ZRTP words
      • setMessageType

        public final void setMessageType​(byte[] messageType)
        Copy the message type to the ZRTP packet header.
        Parameters:
        messageType - The message type name.