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 TypeMethodDescriptionvoidapply(InetSocketAddress address, IServerChannelControl server) apply.voidapply(IAssociationControl channel) apply.intGetter for the fieldadvertisedReceiverWindowCredit.byte[]getBytes()getBytes.intGetter for the fieldinitialTSN.intGetter for the fieldinitiateTag.intGetter for the fieldnumberOfInboundStreams.intGetter for the fieldnumberOfOutboundStreams.intgetSize()getSize.
-
Constructor Details
-
InitAck
Constructor for InitAck.
- Parameters:
data- an array ofobjectsinvalid reference
byteoffset- 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- aStateCookieobjectmac- aMacobject- 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:
applyin classChunk- Parameters:
channel- aIAssociationControlobject- Throws:
IOException- if any.InvalidKeyException- if any.NoSuchAlgorithmException- if any.SctpException- if any.
-
apply
apply.
- Specified by:
applyin classChunk- Parameters:
address- aInetSocketAddressobjectserver- aIServerChannelControlobject- 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
-