public abstract class Chunk extends Object
| Modifier and Type | Field and Description |
|---|---|
protected static int |
CHUNK_HEADER_SIZE |
| Constructor and Description |
|---|
Chunk(byte[] data,
int offset,
int length) |
Chunk(ChunkType type,
byte flags) |
Chunk(ChunkType type,
byte flags,
short length) |
| Modifier and Type | Method and Description |
|---|---|
abstract void |
apply(IAssociationControl channel) |
abstract void |
apply(InetSocketAddress address,
IServerChannelControl server) |
byte[] |
getBytes() |
int |
getSize() |
protected void |
setLength(int length) |
protected static final int CHUNK_HEADER_SIZE
public Chunk(byte[] data,
int offset,
int length)
throws SctpException
SctpExceptionpublic Chunk(ChunkType type, byte flags, short length)
public Chunk(ChunkType type, byte flags)
public abstract void apply(IAssociationControl channel) throws SctpException, IOException, InvalidKeyException, NoSuchAlgorithmException
public abstract void apply(InetSocketAddress address, IServerChannelControl server) throws SctpException, InvalidKeyException, NoSuchAlgorithmException, IOException
public int getSize()
public byte[] getBytes()
protected void setLength(int length)
Copyright © 2005–2017 Red5. All rights reserved.