C# Class NetworkPackets.StunPacket.Attribute

Holds a generic Xmpp Attribute.
ファイルを表示 Open project: pstjuste/brunet

Public Properties

Property Type Description
Data Brunet.Util.MemBlock
Type AttributeType
Value Brunet.Util.MemBlock

Public Methods

Method Description
Attribute ( AttributeType type, MemBlock value ) : Brunet.Util

Create a new Attribute.

Attribute ( MemBlock data ) : Brunet.Util

Parse an Attribute.

Parse ( MemBlock data ) : Attribute

Converts an attribute into a specific type if a parser exists for it, otherwise stuffs it into a generic Attribute object.

Method Details

Attribute() public method

Create a new Attribute.
public Attribute ( AttributeType type, MemBlock value ) : Brunet.Util
type AttributeType
value Brunet.Util.MemBlock
return Brunet.Util

Attribute() public method

Parse an Attribute.
public Attribute ( MemBlock data ) : Brunet.Util
data Brunet.Util.MemBlock
return Brunet.Util

Parse() public static method

Converts an attribute into a specific type if a parser exists for it, otherwise stuffs it into a generic Attribute object.
public static Parse ( MemBlock data ) : Attribute
data Brunet.Util.MemBlock
return System.Attribute

Property Details

Data public_oe property

Data for the attribute.
public MemBlock,Brunet.Util Data
return Brunet.Util.MemBlock

Type public_oe property

The Attribute type.
public AttributeType Type
return AttributeType

Value public_oe property

The binary represtation of the value.
public MemBlock,Brunet.Util Value
return Brunet.Util.MemBlock