Class SctpShutdownChunk
An endpoint in an association MUST use this chunk to initiate a graceful close of the association with its peer.
Inherited Members
Namespace: SIPSorcery.Net
Assembly: SIPSorcery.dll
Syntax
public class SctpShutdownChunk : SctpChunk
Remarks
Constructors
| Improve this Doc View SourceSctpShutdownChunk(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 SourceCumulativeTsnAck
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> |
FIXED_PARAMETERS_LENGTH
Declaration
public const int FIXED_PARAMETERS_LENGTH = 4
Field Value
Type | Description |
---|---|
System.Int32 |
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 padded length of the chunk. |
Overrides
| Improve this Doc View SourceParseChunk(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 |
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. |