Show / Hide Table of Contents

Class STUNAttribute

Inheritance
System.Object
STUNAttribute
STUNAddressAttributeBase
STUNChangeRequestAttribute
STUNConnectionIdAttribute
STUNErrorCodeAttribute
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)
Namespace: SIPSorcery.Net
Assembly: SIPSorcery.dll
Syntax
public class STUNAttribute

Constructors

| Improve this Doc View Source

STUNAttribute(STUNAttributeTypesEnum, Byte[])

Declaration
public STUNAttribute(STUNAttributeTypesEnum attributeType, byte[] value)
Parameters
Type Name Description
STUNAttributeTypesEnum attributeType
System.Byte[] value
| Improve this Doc View Source

STUNAttribute(STUNAttributeTypesEnum, UInt16)

Declaration
public STUNAttribute(STUNAttributeTypesEnum attributeType, ushort value)
Parameters
Type Name Description
STUNAttributeTypesEnum attributeType
System.UInt16 value
| Improve this Doc View Source

STUNAttribute(STUNAttributeTypesEnum, UInt32)

Declaration
public STUNAttribute(STUNAttributeTypesEnum attributeType, uint value)
Parameters
Type Name Description
STUNAttributeTypesEnum attributeType
System.UInt32 value
| Improve this Doc View Source

STUNAttribute(STUNAttributeTypesEnum, UInt64)

Declaration
public STUNAttribute(STUNAttributeTypesEnum attributeType, ulong value)
Parameters
Type Name Description
STUNAttributeTypesEnum attributeType
System.UInt64 value

Fields

| Improve this Doc View Source

AttributeType

Declaration
public STUNAttributeTypesEnum AttributeType
Field Value
Type Description
STUNAttributeTypesEnum
| Improve this Doc View Source

STUNATTRIBUTE_HEADER_LENGTH

Declaration
public const short STUNATTRIBUTE_HEADER_LENGTH = 4
Field Value
Type Description
System.Int16
| Improve this Doc View Source

Value

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

Properties

| Improve this Doc View Source

PaddedLength

Declaration
public virtual ushort PaddedLength { get; }
Property Value
Type Description
System.UInt16

Methods

| Improve this Doc View Source

ParseMessageAttributes(Byte[], Int32, Int32)

Declaration
public static List<STUNAttribute> ParseMessageAttributes(byte[] buffer, int startIndex, int endIndex)
Parameters
Type Name Description
System.Byte[] buffer
System.Int32 startIndex
System.Int32 endIndex
Returns
Type Description
System.Collections.Generic.List<STUNAttribute>
| Improve this Doc View Source

ParseMessageAttributes(Byte[], Int32, Int32, STUNHeader)

Declaration
public static List<STUNAttribute> ParseMessageAttributes(byte[] buffer, int startIndex, int endIndex, STUNHeader header)
Parameters
Type Name Description
System.Byte[] buffer
System.Int32 startIndex
System.Int32 endIndex
STUNHeader header
Returns
Type Description
System.Collections.Generic.List<STUNAttribute>
| Improve this Doc View Source

ToByteBuffer(Byte[], Int32)

Declaration
public virtual int ToByteBuffer(byte[] buffer, int startIndex)
Parameters
Type Name Description
System.Byte[] buffer
System.Int32 startIndex
Returns
Type Description
System.Int32
| Improve this Doc View Source

ToString()

Declaration
public virtual string ToString()
Returns
Type Description
System.String

Extension Methods

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