Show / Hide Table of Contents

Struct SctpHeader

Inherited Members
System.ValueType.Equals(System.Object)
System.ValueType.GetHashCode()
System.ValueType.ToString()
System.Object.Equals(System.Object, System.Object)
System.Object.GetType()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: SIPSorcery.Net
Assembly: SIPSorcery.dll
Syntax
public struct SctpHeader

Fields

| Improve this Doc View Source

DestinationPort

The SCTP port number to which this packet is destined.

Declaration
public ushort DestinationPort
Field Value
Type Description
System.UInt16
| Improve this Doc View Source

SCTP_HEADER_LENGTH

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

SourcePort

The SCTP sender's port number.

Declaration
public ushort SourcePort
Field Value
Type Description
System.UInt16
| Improve this Doc View Source

VerificationTag

The receiver of this packet uses the Verification Tag to validate the sender of this SCTP packet.

Declaration
public uint VerificationTag
Field Value
Type Description
System.UInt32

Properties

| Improve this Doc View Source

Checksum

The CRC32c checksum of this SCTP packet.

Declaration
public uint Checksum { readonly get; }
Property Value
Type Description
System.UInt32

Methods

| Improve this Doc View Source

Parse(Byte[], Int32)

Parses the an SCTP header from a buffer.

Declaration
public static SctpHeader Parse(byte[] buffer, int posn)
Parameters
Type Name Description
System.Byte[] buffer

The buffer to parse the SCTP header from.

System.Int32 posn

The position in the buffer to start parsing the header from.

Returns
Type Description
SctpHeader

A new SCTPHeaer instance.

| Improve this Doc View Source

WriteToBuffer(Byte[], Int32)

Serialises the header to a pre-allocated buffer.

Declaration
public void WriteToBuffer(byte[] buffer, int posn)
Parameters
Type Name Description
System.Byte[] buffer

The buffer to write the SCTP header bytes to. It must have the required space already allocated.

System.Int32 posn

The position in the buffer to write the header bytes to.

Extension Methods

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