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 SourceDestinationPort
The SCTP port number to which this packet is destined.
Declaration
public ushort DestinationPort
Field Value
Type | Description |
---|---|
System.UInt16 |
SCTP_HEADER_LENGTH
Declaration
public const int SCTP_HEADER_LENGTH = 12
Field Value
Type | Description |
---|---|
System.Int32 |
SourcePort
The SCTP sender's port number.
Declaration
public ushort SourcePort
Field Value
Type | Description |
---|---|
System.UInt16 |
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 SourceChecksum
The CRC32c checksum of this SCTP packet.
Declaration
public uint Checksum { readonly get; }
Property Value
Type | Description |
---|---|
System.UInt32 |
Methods
| Improve this Doc View SourceParse(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. |
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. |