|
SIP Communicator: 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.media.RawPacket
net.java.sip.communicator.impl.media.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 conatins this magic number. |
| Fields inherited from class net.java.sip.communicator.impl.media.RawPacket |
|---|
buffer, length, offset |
| 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 byte[] |
getMessagePart()
Get the ZRTP message part from the ZRTP packet. |
protected int |
getSSRC()
Read the SSRC data from packet. |
protected boolean |
hasMagic()
Check if it is really a ZRTP packet. |
protected boolean |
isZrtpPacket()
Check if it could be a ZRTP packet. |
static void |
main(String[] argv)
|
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.media.RawPacket |
|---|
append, getBuffer, getLength, getOffset, readByte, readInt, readRegion, readRegionToBuff, readShort, readUnsignedIntAsLong, readUnsignedShortAsInt, shrink |
| 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()
protected boolean hasMagic()
protected void setSeqNum(short seq)
seq - protected void setSSRC(int ssrc)
ssrc - protected int getSSRC()
protected boolean checkCrc()
protected void setCrc()
protected byte[] getMessagePart()
public static void main(String[] argv)
|
SIP Communicator: the OpenSource Java VoIP and Instant Messaging client. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||