C# Class SIPSorcery.Net.STUNv2Attribute

Show file Open project: sipsorcery/sipsorcery Class Usage Examples

Public Properties

Property Type Description
AttributeType STUNv2AttributeTypesEnum
Value byte[]

Public Methods

Method Description
ParseMessageAttributes ( byte buffer, int startIndex, int endIndex ) : List
STUNv2Attribute ( STUNv2AttributeTypesEnum attributeType, byte value ) : NUnit.Framework
STUNv2Attribute ( STUNv2AttributeTypesEnum attributeType, int value ) : NUnit.Framework
STUNv2Attribute ( STUNv2AttributeTypesEnum attributeType, ushort value ) : NUnit.Framework
ToByteBuffer ( byte buffer, int startIndex ) : int
ToString ( ) : string

Method Details

ParseMessageAttributes() public static method

public static ParseMessageAttributes ( byte buffer, int startIndex, int endIndex ) : List
buffer byte
startIndex int
endIndex int
return List

STUNv2Attribute() public method

public STUNv2Attribute ( STUNv2AttributeTypesEnum attributeType, byte value ) : NUnit.Framework
attributeType STUNv2AttributeTypesEnum
value byte
return NUnit.Framework

STUNv2Attribute() public method

public STUNv2Attribute ( STUNv2AttributeTypesEnum attributeType, int value ) : NUnit.Framework
attributeType STUNv2AttributeTypesEnum
value int
return NUnit.Framework

STUNv2Attribute() public method

public STUNv2Attribute ( STUNv2AttributeTypesEnum attributeType, ushort value ) : NUnit.Framework
attributeType STUNv2AttributeTypesEnum
value ushort
return NUnit.Framework

ToByteBuffer() public method

public ToByteBuffer ( byte buffer, int startIndex ) : int
buffer byte
startIndex int
return int

ToString() public method

public ToString ( ) : string
return string

Property Details

AttributeType public property

public STUNv2AttributeTypesEnum AttributeType
return STUNv2AttributeTypesEnum

Value public property

public byte[] Value
return byte[]