Class SctpSackChunk
This chunk is sent to the peer endpoint to acknowledge received DATA chunks and to inform the peer endpoint of gaps in the received sub-sequences of DATA chunks as represented by their Transmission Sequence Numbers (TSN).
Inherited Members
Namespace: SIPSorcery.Net
Assembly: SIPSorcery.dll
Syntax
public class SctpSackChunk : SctpChunk
Constructors
| Improve this Doc View SourceSctpSackChunk(UInt32, UInt32)
Creates a new SACK chunk.
Declaration
public SctpSackChunk(uint cumulativeTsnAck, uint arwnd)
Parameters
Type | Name | Description |
---|---|---|
System.UInt32 | cumulativeTsnAck | The last TSN that was received from the remote party. |
System.UInt32 | arwnd | The current Advertised Receiver Window Credit. |
Fields
| Improve this Doc View SourceARwnd
Advertised Receiver Window Credit. This field indicates the updated receive buffer space in bytes of the sender of this SACK
Declaration
public uint ARwnd
Field Value
Type | Description |
---|---|
System.UInt32 |
CumulativeTsnAck
This parameter contains the TSN of the last chunk received in sequence before any gaps.
Declaration
public uint CumulativeTsnAck
Field Value
Type | Description |
---|---|
System.UInt32 |
DuplicateTSN
Indicates the number of times a TSN was received in duplicate since the last SACK was sent.
Declaration
public List<uint> DuplicateTSN
Field Value
Type | Description |
---|---|
System.Collections.Generic.List<System.UInt32> |
FIXED_PARAMETERS_LENGTH
Declaration
public const int FIXED_PARAMETERS_LENGTH = 12
Field Value
Type | Description |
---|---|
System.Int32 |
GapAckBlocks
The gap ACK blocks. Each entry represents a gap in the forward out of order TSNs received.
Declaration
public List<SctpTsnGapBlock> GapAckBlocks
Field Value
Type | Description |
---|---|
System.Collections.Generic.List<SctpTsnGapBlock> |
Methods
| Improve this Doc View SourceGetChunkLength(Boolean)
Calculates the padded length for the chunk.
Declaration
public override ushort GetChunkLength(bool padded)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | padded | If true the length field will be padded to a 4 byte boundary. |
Returns
Type | Description |
---|---|
System.UInt16 | The length of the chunk. |
Overrides
| Improve this Doc View SourceParseChunk(Byte[], Int32)
Parses the SACK chunk fields.
Declaration
public static SctpSackChunk ParseChunk(byte[] buffer, int posn)
Parameters
Type | Name | Description |
---|---|---|
System.Byte[] | buffer | The buffer holding the serialised chunk. |
System.Int32 | posn | The position to start parsing at. |
Returns
Type | Description |
---|---|
SctpSackChunk |
WriteTo(Byte[], Int32)
Serialises the SACK chunk to a pre-allocated buffer.
Declaration
public override ushort WriteTo(byte[] buffer, int posn)
Parameters
Type | Name | Description |
---|---|---|
System.Byte[] | buffer | The buffer to write the serialised chunk bytes to. It must have the required space already allocated. |
System.Int32 | posn | The position in the buffer to write to. |
Returns
Type | Description |
---|---|
System.UInt16 | The number of bytes, including padding, written to the buffer. |