Package gnu.java.zrtp.packets
Class ZrtpPacketError
- java.lang.Object
-
- gnu.java.zrtp.packets.ZrtpPacketBase
-
- gnu.java.zrtp.packets.ZrtpPacketError
-
public class ZrtpPacketError extends ZrtpPacketBase
- Author:
- Werner Dittmann <Werner.Dittmann@t-online.de>
-
-
Field Summary
-
Fields inherited from class gnu.java.zrtp.packets.ZrtpPacketBase
CLIENT_ID_SIZE, CRC_SIZE, HASH_IMAGE_SIZE, HMAC_SIZE, HVI_SIZE, packetBuffer, ZID_SIZE, ZRTP_HEADER_LENGTH, ZRTP_WORD_SIZE
-
-
Constructor Summary
Constructors Constructor Description ZrtpPacketError()Constructor for a new Error message.ZrtpPacketError(byte[] data)Constructor for Error message initialized with received data.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetErrorCode()Get the error code from the Error packet.voidsetErrorCode(int code)Set the error code in the Error packet.-
Methods inherited from class gnu.java.zrtp.packets.ZrtpPacketBase
getHeaderBase, getLength, getMessageType, isZrtpPacket, setLength, setMessageType, setZrtpId
-
-
-
-
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.
-
-