jlibrtp
Class RtcpPktSDES

java.lang.Object
  extended by jlibrtp.RtcpPkt
      extended by jlibrtp.RtcpPktSDES

public class RtcpPktSDES
extends RtcpPkt

RTCP packets for Source Descriptions

Author:
Arne Kepp

Field Summary
protected  Participant[] participants
          The participants to create SDES packets for
(package private)  boolean reportSelf
          Whether the RTP Session object should be inclduded
(package private)  RTPSession rtpSession
          The parent RTP Session object, holds participant database
 
Fields inherited from class jlibrtp.RtcpPkt
itemCount, length, packetType, padding, problem, rawPkt, received, ssrc, time, version
 
Constructor Summary
protected RtcpPktSDES(boolean reportThisSession, RTPSession rtpSession, Participant[] additionalParticipants)
          Constructor to create a new SDES packet TODO: Currently the added participants are not actually encoded because the library lacks some support for acting as mixer or relay in other areas.
protected RtcpPktSDES(byte[] aRawPkt, int start, java.net.InetSocketAddress socket, ParticipantDatabase partDb)
          Constructor that parses a received packet
 
Method Summary
 void debugPrint()
          Debug purposes only
protected  void encode()
          Encode the packet into a byte[], saved in .rawPkt CompRtcpPkt will call this automatically
 
Methods inherited from class jlibrtp.RtcpPkt
check, parseHeaders, writeHeaders
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

reportSelf

boolean reportSelf
Whether the RTP Session object should be inclduded


rtpSession

RTPSession rtpSession
The parent RTP Session object, holds participant database


participants

protected Participant[] participants
The participants to create SDES packets for

Constructor Detail

RtcpPktSDES

protected RtcpPktSDES(boolean reportThisSession,
                      RTPSession rtpSession,
                      Participant[] additionalParticipants)
Constructor to create a new SDES packet TODO: Currently the added participants are not actually encoded because the library lacks some support for acting as mixer or relay in other areas.

Parameters:
reportThisSession - include information from RTPSession as a participant
rtpSession - the session itself
additionalParticipants - additional participants to include

RtcpPktSDES

protected RtcpPktSDES(byte[] aRawPkt,
                      int start,
                      java.net.InetSocketAddress socket,
                      ParticipantDatabase partDb)
Constructor that parses a received packet

Parameters:
aRawPkt - the byte[] containing the packet
start - where in the byte[] this packet starts
socket - the address from which the packet was received
partDb - the participant database
Method Detail

encode

protected void encode()
Encode the packet into a byte[], saved in .rawPkt CompRtcpPkt will call this automatically

Overrides:
encode in class RtcpPkt

debugPrint

public void debugPrint()
Debug purposes only