Show / Hide Table of Contents

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).

Inheritance
System.Object
SctpChunk
SctpSackChunk
Inherited Members
SctpChunk.SCTP_CHUNK_HEADER_LENGTH
SctpChunk.logger
SctpChunk.ChunkType
SctpChunk.ChunkFlags
SctpChunk.ChunkValue
SctpChunk.KnownType
SctpChunk.UnrecognizedPeerParameters
SctpChunk.ParseFirstWord(Byte[], Int32)
SctpChunk.WriteChunkHeader(Byte[], Int32)
SctpChunk.GotUnrecognisedParameter(SctpTlvChunkParameter)
SctpChunk.ParseBaseChunk(Byte[], Int32)
SctpChunk.GetParameters(Byte[], Int32, Int32)
SctpChunk.Parse(Byte[], Int32)
SctpChunk.GetChunkLengthFromHeader(Byte[], Int32, Boolean)
SctpChunk.GetUnrecognisedChunkAction(UInt16)
SctpChunk.CopyUnrecognisedChunk(Byte[], Int32)
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: SIPSorcery.Net
Assembly: SIPSorcery.dll
Syntax
public class SctpSackChunk : SctpChunk

Constructors

| Improve this Doc View Source

SctpSackChunk(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 Source

ARwnd

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
| Improve this Doc View Source

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
| Improve this Doc View Source

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>
| Improve this Doc View Source

FIXED_PARAMETERS_LENGTH

Declaration
public const int FIXED_PARAMETERS_LENGTH = 12
Field Value
Type Description
System.Int32
| Improve this Doc View Source

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 Source

GetChunkLength(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
SctpChunk.GetChunkLength(Boolean)
| Improve this Doc View Source

ParseChunk(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
| Improve this Doc View Source

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.

Overrides
SctpChunk.WriteTo(Byte[], Int32)

Extension Methods

JSONWriter.ToJson(Object)
  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX