Class STUNAttribute
Inheritance
System.Object
STUNAttribute
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)
Assembly: SIPSorcery.dll
Syntax
public class STUNAttribute
Constructors
|
Improve this Doc
View Source
STUNAttribute(STUNAttributeTypesEnum, Byte[])
Declaration
public STUNAttribute(STUNAttributeTypesEnum attributeType, byte[] value)
Parameters
|
Improve this Doc
View Source
STUNAttribute(STUNAttributeTypesEnum, UInt16)
Declaration
public STUNAttribute(STUNAttributeTypesEnum attributeType, ushort value)
Parameters
|
Improve this Doc
View Source
STUNAttribute(STUNAttributeTypesEnum, UInt32)
Declaration
public STUNAttribute(STUNAttributeTypesEnum attributeType, uint value)
Parameters
|
Improve this Doc
View Source
STUNAttribute(STUNAttributeTypesEnum, UInt64)
Declaration
public STUNAttribute(STUNAttributeTypesEnum attributeType, ulong value)
Parameters
Fields
|
Improve this Doc
View Source
AttributeType
Declaration
public STUNAttributeTypesEnum AttributeType
Field Value
|
Improve this Doc
View Source
Declaration
public const short STUNATTRIBUTE_HEADER_LENGTH = 4
Field Value
Type |
Description |
System.Int16 |
|
|
Improve this Doc
View Source
Value
Declaration
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
|
Improve this Doc
View Source
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
|
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