C# Class SIPSorcery.Net.STUNAttribute

显示文件 Open project: sipsorcery/sipsorcery Class Usage Examples

Public Properties

Property Type Description
AttributeType STUNAttributeTypesEnum
Length System.UInt16
Value byte[]

Public Methods

Method Description
ParseMessageAttributes ( byte buffer, int startIndex, int endIndex ) : List
STUNAttribute ( STUNAttributeTypesEnum attributeType, UInt16 length, byte value ) : NUnit.Framework
STUNAttribute ( STUNAttributeTypesEnum attributeType, byte 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

STUNAttribute() public method

public STUNAttribute ( STUNAttributeTypesEnum attributeType, UInt16 length, byte value ) : NUnit.Framework
attributeType STUNAttributeTypesEnum
length System.UInt16
value byte
return NUnit.Framework

STUNAttribute() public method

public STUNAttribute ( STUNAttributeTypesEnum attributeType, byte value ) : NUnit.Framework
attributeType STUNAttributeTypesEnum
value byte
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_oe property

public STUNAttributeTypesEnum AttributeType
return STUNAttributeTypesEnum

Length public_oe property

public UInt16,System Length
return System.UInt16

Value public_oe property

public byte[] Value
return byte[]