dk.i1.sctp
Class SCTPData

java.lang.Object
  extended by dk.i1.sctp.SCTPChunk
      extended by dk.i1.sctp.SCTPData

public class SCTPData
extends SCTPChunk


Field Summary
 sctp_sndrcvinfo sndrcvinfo
          Sender/receiver info
 
Constructor Summary
SCTPData()
          Creates an empty data chunk.
SCTPData(byte[] data)
          Creates a data chunk with payload.
SCTPData(sctp_sndrcvinfo sndrcvinfo, byte[] data)
          Creates an empty data chunk.
 
Method Summary
 byte[] getData()
           
 int getLength()
           
 void setData(byte[] data)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

sndrcvinfo

public sctp_sndrcvinfo sndrcvinfo
Sender/receiver info

Constructor Detail

SCTPData

public SCTPData()
Creates an empty data chunk. Data will be null, and sndrcvinfo is created with default values.


SCTPData

public SCTPData(byte[] data)
Creates a data chunk with payload. Data will be the specified array, and sndrcvinfo is created with default values.


SCTPData

public SCTPData(sctp_sndrcvinfo sndrcvinfo,
                byte[] data)
Creates an empty data chunk. The instances is initialized with the specified parameters.

Method Detail

getData

public byte[] getData()

getLength

public int getLength()

setData

public void setData(byte[] data)