rtpi
Class RtpiState

java.lang.Object
  |
  +--rtpi.RtpiData
        |
        +--rtpi.RtpiState

public class RtpiState
extends RtpiData

This class represents rtpi state ADUs that are sent or received.

Author:
Martin Mauve.

Constructor Summary
RtpiState(int pID, long subID, int seqNo, int pType, int pri, long ts, int pls)
          Create a new ADU for the transmission over the network.
 
Methods inherited from class rtpi.RtpiData
getInputStream, getOutputStream, getParticipantID, getPayloadType, getPriority, getProfileInformation, getSequenceNumber, getSubcomponentID, getTimestamp, outputComplete, setProfileInformation, setRedundancy, setRedundancyTransmissionInterval
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RtpiState

public RtpiState(int pID,
                 long subID,
                 int seqNo,
                 int pType,
                 int pri,
                 long ts,
                 int pls)
          throws IllegalValueException
Create a new ADU for the transmission over the network.
Parameters:
pID - The ID of the local participant.
subID - The ID of the affected subcomponent.
seqNo - The sequence number of the ADU.
pType - The payload type of the ADU.
pri - The priority of this ADU.
ts - The timestamp of the ADU. The value will be automatically clipped to a 32 bit value;
pls - The amount of bytes required for the combined RTP/I packet header (rtpi.packets.RtpiDataPacket.HEADER_SIZE) and the reliability header (depending on the reliability mechanism) used. If this value is not caluclated correctly then the packet will have to be copied one additional time before it can be sent. This decreases efficiency but should still work. There is a utility function Rtpi.getCombinedHeaderSize which returns this value.