|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--rtpi.packets.RtcpiPacket
This is the base class for RTCP/I packets.
Field Summary | |
protected int |
count
The count field. |
static int |
HEADER_SIZE
The size of an RTCP/I header. |
protected int |
length
The length of this RTCP/I packet in bytes. |
protected byte[] |
packetData
The whole compound packet (transport packet) which contains this RTCP packet. |
protected int |
packetStart
RTCP packets are stacked in one compound packet. |
protected int |
participantID
The participant ID |
protected int |
payloadType
The RTCP/I payload type (SUBREP / APP / BYE / SDES). |
protected int |
reserved
The reserved bit. |
protected int |
version
The version. |
static int |
VERSION
The RTCP/I version number. |
Constructor Summary | |
protected |
RtcpiPacket(byte[] packet,
int start)
Constructor for packets coming from the network |
protected |
RtcpiPacket(int pid)
Constructer for packets that are to be sent to the network |
Method Summary | |
abstract void |
flush()
This flushes the packet. |
protected void |
flushHeader(java.io.DataOutputStream dos)
This flushes the header part of an RTCP/I packet. |
int |
getLength()
This returns the length of this packet. |
byte[] |
getPacket()
This returns the encoded packet. |
int |
getParticipantID()
This returns the Partcicipant ID of this packet's source. |
int |
getPayloadType()
Get the payload type of the RTCP packet. |
static int |
inspectLength(byte[] packet,
int start)
This static method extracts the length of the packet. |
static int |
inspectPayloadType(byte[] packet,
int start)
This static method extracts the RTCP/I payload type of an RTCP/I packet. |
abstract void |
parse()
This parses the packet. |
java.lang.String |
toString()
Convert this object to a string. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
Field Detail |
public static final int HEADER_SIZE
public static final int VERSION
protected int version
protected int reserved
protected int count
protected int payloadType
protected int length
protected int participantID
protected int packetStart
protected byte[] packetData
Constructor Detail |
protected RtcpiPacket(byte[] packet, int start)
protected RtcpiPacket(int pid)
Method Detail |
public static int inspectPayloadType(byte[] packet, int start) throws RtpiParseException
packet
- The packet which contains the RTCP/ packet.start
- The start (position of the first byte of the header)
of the RTCP/I packet in the transport packet.public static int inspectLength(byte[] packet, int start) throws RtpiParseException
packet
- The packet which contains the RTCP/ packet.start
- The start (position of the first byte of the header)
of the RTCP/I packet in the transport packet.public byte[] getPacket()
public int getParticipantID()
public int getLength()
public int getPayloadType()
public abstract void flush() throws RtpiFlushException
protected void flushHeader(java.io.DataOutputStream dos) throws RtpiFlushException
dos
- The output stream to which the header information should be flushed.public abstract void parse() throws RtpiParseException
public java.lang.String toString()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |