|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.fmj.media.rtp.RTCPHeader
public class RTCPHeader
Represents and parses an RTCP header
Field Summary | |
---|---|
static int |
SDES_CNAME
An SDES CNAME header |
static int |
SDES_EMAIL
An SDES EMAIL header |
static int |
SDES_LOC
An SDES LOC header |
static int |
SDES_NAME
An SDES NAME header |
static int |
SDES_NOTE
An SDES NOTE header |
static int |
SDES_PHONE
An SDES PHONE header |
static int |
SDES_SKIP
The number of bytes to skip for a SDES header |
static int |
SDES_TOOL
An SDES TOOL header |
static int |
SIZE
The size of the header in bytes |
static int |
VERSION
The current RTP version |
Constructor Summary | |
---|---|
RTCPHeader(byte[] data,
int offset,
int length)
Creates a new RTCPHeader |
|
RTCPHeader(java.net.DatagramPacket packet)
Creates a new RTCPHeader |
Method Summary | |
---|---|
int |
getFlags()
|
int |
getLength()
|
short |
getPacketType()
|
short |
getPadding()
|
short |
getReceptionCount()
|
long |
getSsrc()
|
short |
getVersion()
|
void |
print()
Displays the header |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int VERSION
public static final int SDES_SKIP
public static final int SDES_CNAME
public static final int SDES_NAME
public static final int SDES_EMAIL
public static final int SDES_PHONE
public static final int SDES_LOC
public static final int SDES_TOOL
public static final int SDES_NOTE
public static final int SIZE
Constructor Detail |
---|
public RTCPHeader(java.net.DatagramPacket packet) throws java.io.IOException
packet
- The packet from which to parse the header
java.io.IOException
public RTCPHeader(byte[] data, int offset, int length) throws java.io.IOException
data
- The data to read the header fromoffset
- The offset in the data to startlength
- The length of the data to read
java.io.IOException
Method Detail |
---|
public int getFlags()
public short getVersion()
public short getPadding()
public short getReceptionCount()
public short getPacketType()
public int getLength()
public long getSsrc()
public void print()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |