Package org.red5.io.sctp.packet.chunks
Class InitAck
java.lang.Object
org.red5.io.sctp.packet.chunks.Chunk
org.red5.io.sctp.packet.chunks.InitAck
InitAck class.
- Author:
- mondain
-
Field Summary
Fields inherited from class org.red5.io.sctp.packet.chunks.Chunk
CHUNK_HEADER_SIZE
-
Constructor Summary
ConstructorsConstructorDescriptionInitAck
(byte[] data, int offset, int length) Constructor for InitAck.InitAck
(int initiateTag, int initialTSN, StateCookie stateCookie, Mac mac) Constructor for InitAck. -
Method Summary
Modifier and TypeMethodDescriptionvoid
apply
(InetSocketAddress address, IServerChannelControl server) apply.void
apply
(IAssociationControl channel) apply.int
Getter for the fieldadvertisedReceiverWindowCredit
.byte[]
getBytes()
getBytes.int
Getter for the fieldinitialTSN
.int
Getter for the fieldinitiateTag
.int
Getter for the fieldnumberOfInboundStreams
.int
Getter for the fieldnumberOfOutboundStreams
.int
getSize()
getSize.
-
Constructor Details
-
InitAck
Constructor for InitAck.
- Parameters:
data
- an array ofinvalid reference
byte
offset
- a intlength
- a int- Throws:
SctpException
- if any.
-
InitAck
public InitAck(int initiateTag, int initialTSN, StateCookie stateCookie, Mac mac) throws InvalidKeyException, NoSuchAlgorithmException Constructor for InitAck.
- Parameters:
initiateTag
- a intinitialTSN
- a intstateCookie
- aStateCookie
objectmac
- aMac
object- Throws:
InvalidKeyException
- if any.NoSuchAlgorithmException
- if any.
-
-
Method Details
-
getBytes
public byte[] getBytes()getBytes.
-
getSize
public int getSize()getSize.
-
apply
public void apply(IAssociationControl channel) throws IOException, InvalidKeyException, NoSuchAlgorithmException, SctpException apply.
- Specified by:
apply
in classChunk
- Parameters:
channel
- aIAssociationControl
object- Throws:
IOException
- if any.InvalidKeyException
- if any.NoSuchAlgorithmException
- if any.SctpException
- if any.
-
apply
apply.
- Specified by:
apply
in classChunk
- Parameters:
address
- aInetSocketAddress
objectserver
- aIServerChannelControl
object- Throws:
SctpException
- if any.
-
getInitiateTag
public int getInitiateTag()Getter for the field
initiateTag
.- Returns:
- a int
-
getAdvertisedReceiverWindowCredit
public int getAdvertisedReceiverWindowCredit()Getter for the field
advertisedReceiverWindowCredit
.- Returns:
- a int
-
getNumberOfOutboundStreams
public int getNumberOfOutboundStreams()Getter for the field
numberOfOutboundStreams
.- Returns:
- a int
-
getNumberOfInboundStreams
public int getNumberOfInboundStreams()Getter for the field
numberOfInboundStreams
.- Returns:
- a int
-
getInitialTSN
public int getInitialTSN()Getter for the field
initialTSN
.- Returns:
- a int
-