|
Jitsi: the OpenSource Java VoIP and Instant Messaging client. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.java.sip.communicator.impl.neomedia.RawPacket
net.java.sip.communicator.impl.neomedia.transform.zrtp.ZrtpRawPacket
public class ZrtpRawPacket
ZRTP packet representation. This class extends the RawPacket class and adds some methods required by the ZRTP transformer.
| Field Summary | |
|---|---|
static byte[] |
zrtpMagic
Each ZRTP packet contains this magic number. |
| Fields inherited from class net.java.sip.communicator.impl.neomedia.RawPacket |
|---|
EXT_HEADER_SIZE, FIXED_HEADER_SIZE |
| Constructor Summary | |
|---|---|
ZrtpRawPacket(byte[] buf,
int off,
int len)
Construct an output ZrtpRawPacket using specified value. |
|
ZrtpRawPacket(RawPacket pkt)
Construct an input ZrtpRawPacket using a received RTP raw packet. |
|
| Method Summary | |
|---|---|
protected boolean |
checkCrc()
Check if the CRC of this packet is ok. |
protected boolean |
hasMagic()
Check if it is really a ZRTP packet. |
(package private) static boolean |
isZrtpData(RawPacket pkt)
Checks whether extension bit is set and if so is the extension header an zrtp one. |
protected boolean |
isZrtpPacket()
Check if it could be a ZRTP packet. |
protected void |
setCrc()
Set ZRTP CRC in this packet |
protected void |
setSeqNum(short seq)
Set the sequence number in this packet. |
protected void |
setSSRC(int ssrc)
Set SSRC in this packet |
| Methods inherited from class net.java.sip.communicator.impl.neomedia.RawPacket |
|---|
addExtension, append, extractCsrcLevels, extractCsrcList, getBuffer, getCsrcCount, getExtensionBit, getExtensionLength, getHeaderExtensionType, getHeaderLength, getLength, getOffset, getPaddingSize, getPayload, getPayloadLength, getPayloadType, GetRTCPSSRC, getSequenceNumber, getSRTCPIndex, getSSRC, getTimestamp, grow, isPacketMarked, readByte, readInt, readRegion, readRegionToBuff, readShort, readTimeStampIntoByteArray, readUnsignedIntAsLong, readUnsignedShortAsInt, removeExtension, setBuffer, setCsrcList, setLength, setMarker, setOffset, setPayload, setTimestamp, shrink, writeByte, writeInt |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static byte[] zrtpMagic
| Constructor Detail |
|---|
public ZrtpRawPacket(RawPacket pkt)
pkt - a raw RTP packet as received
public ZrtpRawPacket(byte[] buf,
int off,
int len)
buf - Byte array holding the content of this Packetoff - Start offset of packet content inside bufferlen - Length of the packet's data| Method Detail |
|---|
protected boolean isZrtpPacket()
static boolean isZrtpData(RawPacket pkt)
pkt - the packet to check.
protected boolean hasMagic()
protected void setSeqNum(short seq)
seq - sequence numberprotected void setSSRC(int ssrc)
ssrc - SSRC to setprotected boolean checkCrc()
protected void setCrc()
|
Jitsi: the OpenSource Java VoIP and Instant Messaging client. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||