public class PayloadData
extends java.lang.Object
| Constructor and Description |
|---|
PayloadData(int dataLength,
byte[] data,
boolean complete,
boolean unordered,
int payloadProtocolId,
int streamNumber) |
| Modifier and Type | Method and Description |
|---|---|
byte[] |
getData() |
int |
getDataLength() |
int |
getPayloadProtocolId() |
int |
getStreamNumber()
This is SCTP Stream sequence identifier.
|
boolean |
isComplete() |
boolean |
isUnordered() |
java.lang.String |
toString() |
public PayloadData(int dataLength,
byte[] data,
boolean complete,
boolean unordered,
int payloadProtocolId,
int streamNumber)
dataLength - Length of byte[] datadata - the payload datacomplete - if this data represents complete protocol dataunordered - set to true if we don't care for oderpayloadProtocolId - protocol ID of the data carriedstreamNumber - the SCTP stream numberpublic int getDataLength()
public byte[] getData()
public boolean isComplete()
public boolean isUnordered()
public int getPayloadProtocolId()
public int getStreamNumber()
This is SCTP Stream sequence identifier.
While sending PayloadData to SCTP Association, this value should be set by SCTP user. If value greater than or equal to maxOutboundStreams or lesser than 0 is used, packet will be dropped and error message will be logged
While PayloadData is received from underlying SCTP socket, this value indicates stream identifier on which data was received. Its guaranteed that this value will be greater than 0 and less than maxInboundStreamspublic java.lang.String toString()
toString in class java.lang.ObjectCopyright © 2012. All Rights Reserved.