|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectmil.navy.nps.dis.PduElement
mil.navy.nps.dis.RtpHeader
This class encapsulates the header of the Real-time Transport Protocol (RTP) when used to transfer DIS packets as a payload.
References: RTP: (RFC1889) http://www.ietf.org/internet-drafts/draft-ietf-avt-rtp-new-04.txt
Field Summary | |
static int |
RTP_CSRC_COUNT
Contains the number of contributing source identifiers in this header. |
static int |
RTP_EXTENSION
The extension bit defines if the normal header will be followed by an extension header. |
static int |
RTP_MARKER
This bit is used as a marker by a specific profile or application. |
static int |
RTP_PADDING
Padding is being performed at the DIS protocol level. |
static int |
RTP_PAYLOAD_TYPE_FOR_DIS
We arbitrarily set the payload type number for experimental DIS work to 111. |
static int |
RTP_VERSION
Identifies the version of RTP (2 bits). |
static int |
sizeOf
Contains the size of the header in bytes (= 12). |
Constructor Summary | |
RtpHeader()
Constructor. |
Method Summary | |
java.lang.Object |
clone()
Makes deep copies of all the instance variables. |
void |
deSerialize(java.io.DataInputStream inputStream)
Fills the header contents with data from a DataInputStream |
UnsignedShort |
getSequenceNumber()
Returns the packet sequence number. |
UnsignedInt |
getSSRC()
Returns the packet Syncronization Source Identifier. |
UnsignedInt |
getTimestamp()
Returns the packet timestamp. |
int |
length()
Returns the size of the header. |
void |
prepareToSend(ProtocolDataUnit pdu)
Prepares the header for sending. |
void |
printValues(int indentLevel,
java.io.PrintStream printStream)
Prints internal values for debugging. |
void |
serialize(java.io.DataOutputStream outputStream)
Serializes the header into a DataOutputStream. |
void |
setSequenceNumber(UnsignedShort pSequenceNumber)
Sets the packet sequence number. |
void |
setSSRC(UnsignedInt pSSRC)
Sets the Syncronization Source Identifier. |
void |
setTimestamp(UnsignedInt pTimestamp)
Sets the packet timestamp. |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int RTP_VERSION
public static final int RTP_PADDING
public static final int RTP_EXTENSION
public static final int RTP_CSRC_COUNT
public static final int RTP_MARKER
public static final int RTP_PAYLOAD_TYPE_FOR_DIS
See Section 3 of RTP Profile for Audio and Video Conferences with Minimal Control (http://www.ietf.org/internet-drafts/draft-ietf-avt-profile-new-06.txt) and RTP Payload types (PT) for standard audio and video encodings (www.isi.edu/in-notes/iana/assignments/rtp-parameters).
E-mail discussion on this topic is archived at http://www.web3D.org/WorkingGroups/vrtp/dis-java-vrml/hypermail/1999/9902/0083.html
public static final int sizeOf
Constructor Detail |
public RtpHeader()
Method Detail |
public UnsignedShort getSequenceNumber()
public UnsignedInt getTimestamp()
public UnsignedInt getSSRC()
public void setSequenceNumber(UnsignedShort pSequenceNumber)
pSequenceNumber
- the sequence number as an unsigned short (16 bits)public void setTimestamp(UnsignedInt pTimestamp)
pTimestamp
- the timestamp as an unsigned int (32 bits)public void setSSRC(UnsignedInt pSSRC)
pSSRC
- the SSRC as a unsigned int (32 bits)public void prepareToSend(ProtocolDataUnit pdu)
pdu
- the DIS pdu that will be transmittedpublic int length()
length
in class PduElement
public void serialize(java.io.DataOutputStream outputStream)
serialize
in interface SerializationInterface
serialize
in class PduElement
outputStream
- the stream that will receive the serialized header.public void deSerialize(java.io.DataInputStream inputStream)
deSerialize
in interface SerializationInterface
deSerialize
in class PduElement
inputStream
- the stream which contains the header.public java.lang.Object clone()
clone
in class PduElement
Object
public void printValues(int indentLevel, java.io.PrintStream printStream)
printValues
in class PduElement
indentLevel
- number of spaces to indent for visibility
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |