Show / Hide Table of Contents

Class STUNHeader

Inheritance
System.Object
STUNHeader
Inherited Members
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 STUNHeader

Constructors

| Improve this Doc View Source

STUNHeader()

Declaration
public STUNHeader()
| Improve this Doc View Source

STUNHeader(STUNMessageTypesEnum)

Declaration
public STUNHeader(STUNMessageTypesEnum messageType)
Parameters
Type Name Description
STUNMessageTypesEnum messageType

Fields

| Improve this Doc View Source

MAGIC_COOKIE

Declaration
public const uint MAGIC_COOKIE = 554869826U
Field Value
Type Description
System.UInt32
| Improve this Doc View Source

MessageLength

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

MessageType

Declaration
public STUNMessageTypesEnum MessageType
Field Value
Type Description
STUNMessageTypesEnum
| Improve this Doc View Source

STUN_HEADER_LENGTH

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

STUN_INITIAL_BYTE_MASK

Declaration
public const byte STUN_INITIAL_BYTE_MASK = 192
Field Value
Type Description
System.Byte
| Improve this Doc View Source

STUN_MESSAGE_CLASS_MASK

Declaration
public const ushort STUN_MESSAGE_CLASS_MASK = 272
Field Value
Type Description
System.UInt16
| Improve this Doc View Source

TRANSACTION_ID_LENGTH

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

TransactionId

Declaration
public byte[] TransactionId
Field Value
Type Description
System.Byte[]

Properties

| Improve this Doc View Source

MessageClass

Declaration
public STUNClassTypesEnum MessageClass { get; }
Property Value
Type Description
STUNClassTypesEnum

Methods

| Improve this Doc View Source

ParseSTUNHeader(ArraySegment<Byte>)

Declaration
public static STUNHeader ParseSTUNHeader(ArraySegment<byte> bufferSegment)
Parameters
Type Name Description
System.ArraySegment<System.Byte> bufferSegment
Returns
Type Description
STUNHeader
| Improve this Doc View Source

ParseSTUNHeader(Byte[])

Declaration
public static STUNHeader ParseSTUNHeader(byte[] buffer)
Parameters
Type Name Description
System.Byte[] buffer
Returns
Type Description
STUNHeader

Extension Methods

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