Show / Hide Table of Contents

Class SctpShutdownChunk

An endpoint in an association MUST use this chunk to initiate a graceful close of the association with its peer.

Inheritance
System.Object
SctpChunk
SctpShutdownChunk
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 SctpShutdownChunk : SctpChunk
Remarks

https://tools.ietf.org/html/rfc4960#section-3.3.8

Constructors

| Improve this Doc View Source

SctpShutdownChunk(Nullable<UInt32>)

Creates a new SHUTDOWN chunk.

Declaration
public SctpShutdownChunk(uint? cumulativeTsnAck)
Parameters
Type Name Description
System.Nullable<System.UInt32> cumulativeTsnAck

The last TSN that was received from the remote party.

Fields

| 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.Nullable<System.UInt32>
| Improve this Doc View Source

FIXED_PARAMETERS_LENGTH

Declaration
public const int FIXED_PARAMETERS_LENGTH = 4
Field Value
Type Description
System.Int32

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 padded length of the chunk.

Overrides
SctpChunk.GetChunkLength(Boolean)
| Improve this Doc View Source

ParseChunk(Byte[], Int32)

Parses the SHUTDOWN chunk fields.

Declaration
public static SctpShutdownChunk 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
SctpShutdownChunk
| Improve this Doc View Source

WriteTo(Byte[], Int32)

Serialises the SHUTDOWN 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