Class ZrtpPacketError


  • public class ZrtpPacketError
    extends ZrtpPacketBase
    Author:
    Werner Dittmann <Werner.Dittmann@t-online.de>
    • Constructor Detail

      • ZrtpPacketError

        public ZrtpPacketError()
        Constructor for a new Error message. ErrorAck does not have any specific fields, it is only a simple message.
      • ZrtpPacketError

        public ZrtpPacketError​(byte[] data)
        Constructor for Error message initialized with received data.
        Parameters:
        data - received from the network.
    • Method Detail

      • getErrorCode

        public final int getErrorCode()
        Get the error code from the Error packet. Refer to the ZRTP specification about the error code semantics.
        Returns:
        the error code.
      • setErrorCode

        public final void setErrorCode​(int code)
        Set the error code in the Error packet. Refer to the ZRTP specification about the error code semantics.
        Parameters:
        code - the error code.