|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.ow2.clif.probe.rtp.RTCPPacket
org.ow2.clif.probe.rtp.SDESPacket
public class SDESPacket
Create a RTCP SDES packet. 0 1 2 3 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ header |V=2|P| SC | PT=SDES=202 | length | +=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+ chunk | SSRC/CSRC_1 | 1 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | SDES items | | ... | +=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+ chunk | SSRC/CSRC_2 | 2 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | SDES items | | ... | +=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+ Cf. RFC 3550 for details about construction of SDES packet.
Constructor Summary | |
---|---|
SDESPacket()
Constructor |
Method Summary | |
---|---|
void |
addSdesItem(java.lang.Long ssrc,
byte[] item)
Add an item the SDES packet. |
byte[] |
createItem(java.lang.Integer type,
java.lang.String value)
Create an item to add in an SDES packet. |
byte[] |
createPacket()
Method to create a SDES packet. |
java.lang.Integer |
getItemType(java.lang.String name)
Returns the value associated to the item name. |
java.lang.Integer |
getPacketType()
Returns the packet type. |
Methods inherited from class org.ow2.clif.probe.rtp.RTCPPacket |
---|
createRtcpPacket, decodeCount, decodeLength, decodePacketType, decodePadding, decodeTwoComplement, decodeTwoComplement, decodeVersion, getRtcpPackets, packetTypeAvailable |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SDESPacket()
Method Detail |
---|
public byte[] createPacket()
createPacket
in class RTCPPacket
public void addSdesItem(java.lang.Long ssrc, byte[] item)
ssrc
- : the SSRC associated to the item.item
- : the item to add to the packet.public byte[] createItem(java.lang.Integer type, java.lang.String value)
type
- : the numerical type of item.value
- : the value to add to the item.
public java.lang.Integer getItemType(java.lang.String name)
name
- : the item type (not case sensitive).
public java.lang.Integer getPacketType()
getPacketType
in class RTCPPacket
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |