Show / Hide Table of Contents

Class SctpErrorChunk

An endpoint sends this chunk to its peer endpoint to notify it of certain error conditions. It contains one or more error causes. An Operation Error is not considered fatal in and of itself, but may be used with an ABORT chunk to report a fatal condition.

Inheritance
System.Object
SctpChunk
SctpErrorChunk
SctpAbortChunk
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 SctpErrorChunk : SctpChunk

Constructors

| Improve this Doc View Source

SctpErrorChunk()

Declaration
public SctpErrorChunk()
| Improve this Doc View Source

SctpErrorChunk(ISctpErrorCause)

Creates a new ERROR chunk.

Declaration
public SctpErrorChunk(ISctpErrorCause errorCause)
Parameters
Type Name Description
ISctpErrorCause errorCause

The initial error cause to set on this chunk.

| Improve this Doc View Source

SctpErrorChunk(SctpChunkType, Boolean)

This constructor is for the ABORT chunk type which is identical to the ERROR chunk except for the optional verification tag bit.

Declaration
protected SctpErrorChunk(SctpChunkType chunkType, bool verificationTagBit)
Parameters
Type Name Description
SctpChunkType chunkType

The chunk type, typically ABORT.

System.Boolean verificationTagBit
| Improve this Doc View Source

SctpErrorChunk(SctpErrorCauseCode)

Creates a new ERROR chunk.

Declaration
public SctpErrorChunk(SctpErrorCauseCode errorCauseCode)
Parameters
Type Name Description
SctpErrorCauseCode errorCauseCode

The initial error cause code to set on this chunk.

Properties

| Improve this Doc View Source

ErrorCauses

Declaration
public List<ISctpErrorCause> ErrorCauses { get; }
Property Value
Type Description
System.Collections.Generic.List<ISctpErrorCause>

Methods

| Improve this Doc View Source

AddErrorCause(ISctpErrorCause)

Adds an additional error cause parameter to the chunk.

Declaration
public void AddErrorCause(ISctpErrorCause errorCause)
Parameters
Type Name Description
ISctpErrorCause errorCause

The additional error cause to add to the chunk.

| Improve this Doc View Source

GetChunkLength(Boolean)

Calculates the 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, Boolean)

Parses the ERROR chunk fields.

Declaration
public static SctpErrorChunk ParseChunk(byte[] buffer, int posn, bool isAbort)
Parameters
Type Name Description
System.Byte[] buffer

The buffer holding the serialised chunk.

System.Int32 posn

The position to start parsing at.

System.Boolean isAbort
Returns
Type Description
SctpErrorChunk
| Improve this Doc View Source

WriteTo(Byte[], Int32)

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