Package org.red5.io.sctp.packet.chunks
Class Chunk
- java.lang.Object
-
- org.red5.io.sctp.packet.chunks.Chunk
-
- Direct Known Subclasses:
CookieAck,CookieEcho,Init,InitAck
public abstract class Chunk extends Object
-
-
Field Summary
Fields Modifier and Type Field Description protected static intCHUNK_HEADER_SIZE
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract voidapply(InetSocketAddress address, IServerChannelControl server)abstract voidapply(IAssociationControl channel)byte[]getBytes()intgetSize()protected voidsetLength(int length)
-
-
-
Field Detail
-
CHUNK_HEADER_SIZE
protected static final int CHUNK_HEADER_SIZE
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
Chunk
public Chunk(byte[] data, int offset, int length) throws SctpException- Throws:
SctpException
-
Chunk
public Chunk(ChunkType type, byte flags, short length)
-
Chunk
public Chunk(ChunkType type, byte flags)
-
-
Method Detail
-
apply
public abstract void apply(IAssociationControl channel) throws SctpException, IOException, InvalidKeyException, NoSuchAlgorithmException
-
apply
public abstract void apply(InetSocketAddress address, IServerChannelControl server) throws SctpException, InvalidKeyException, NoSuchAlgorithmException, IOException
-
getSize
public int getSize()
-
getBytes
public byte[] getBytes()
-
setLength
protected void setLength(int length)
-
-