rtpi.packets
Class RtcpiSourceDescriptionPacket
java.lang.Object
|
+--rtpi.packets.RtcpiPacket
|
+--rtpi.packets.RtcpiSourceDescriptionPacket
- public class RtcpiSourceDescriptionPacket
- extends RtcpiPacket
This implements the RTCP/I source description packet.
Field Summary |
static int |
SDES
The payload type for source description packets. |
Constructor Summary |
RtcpiSourceDescriptionPacket(byte[] d,
int s)
This creates an RTCP/I source description packet from a transport packet
that has been received. |
RtcpiSourceDescriptionPacket(int pid,
java.util.LinkedList sdi)
This creates a new source description packet that is to be transmitted over
the network. |
Method Summary |
void |
flush()
This flushes an outgoing packet. |
java.util.LinkedList |
getSourceDescriptionItems()
This returns the list of SourceDescriptionItems that are contained in
this packet. |
void |
parse()
This parses an incoming 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 |
SDES
public static final int SDES
- The payload type for source description packets.
RtcpiSourceDescriptionPacket
public RtcpiSourceDescriptionPacket(int pid,
java.util.LinkedList sdi)
throws IllegalValueException
- This creates a new source description packet that is to be transmitted over
the network.
- Parameters:
pid
- The id of the participant transmitting the packet.sdi
- The list of source description items. All objects in this list
must be of the type SourceDescriptionItems (package rtpi.packets).
The first item MUST be a CNAME item.
RtcpiSourceDescriptionPacket
public RtcpiSourceDescriptionPacket(byte[] d,
int s)
- This creates an RTCP/I source description packet from a transport packet
that has been received.
- Parameters:
d
- The transport packet.s
- The start of the RTCP/I packet in the transport packet
(position of the first byte of the RTCP/I header.
flush
public void flush()
throws RtpiFlushException
- This flushes an outgoing packet.
- Overrides:
- flush in class RtcpiPacket
parse
public void parse()
throws RtpiParseException
- This parses an incoming packet.
- Overrides:
- parse in class RtcpiPacket
getSourceDescriptionItems
public java.util.LinkedList getSourceDescriptionItems()
- This returns the list of SourceDescriptionItems that are contained in
this packet.
- Returns:
- The list of SDES items.
toString
public java.lang.String toString()
- Convert this object to a string.
- Returns:
- This object as a string.
- Overrides:
- toString in class RtcpiPacket