|
||||||||||
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.AppPacket
public class AppPacket
Create a RTCP APP 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 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ |V=2|P| subtype | PT=APP=204 | length | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | SSRC/CSRC | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | name (ASCII) | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | application-dependent data ... +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Cf. RFC 3550 for details about construction of APP packet.
Constructor Summary | |
---|---|
AppPacket(java.lang.Integer subtype,
java.lang.Long ssrc,
java.lang.String name,
java.lang.String data)
Constructor |
Method Summary | |
---|---|
byte[] |
createPacket()
Method to create a APP packet. |
java.lang.Long |
decodeName(byte[] data,
java.lang.Integer offset)
Decode Name from a APP packet. |
java.lang.Long |
decodeSsrc(byte[] data,
java.lang.Integer offset)
Decode SSRC from a APP packet. |
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 AppPacket(java.lang.Integer subtype, java.lang.Long ssrc, java.lang.String name, java.lang.String data)
subtype
- : the subtype of the packet.ssrc
- : the SSRC of the packet.name
- : the name of the packet.data
- : the data to transmit in the packet (must be less than 500 bytes).Method Detail |
---|
public byte[] createPacket()
createPacket
in class RTCPPacket
public java.lang.Integer getPacketType()
getPacketType
in class RTCPPacket
public java.lang.Long decodeSsrc(byte[] data, java.lang.Integer offset)
data
- : the data to decode.offset
- : the beginning of the report.
public java.lang.Long decodeName(byte[] data, java.lang.Integer offset)
data
- : the data to decode.offset
- : the beginning of the report.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |