C# Class NetworkPackets.StunPacket.Attribute

Holds a generic Xmpp Attribute.
Show file 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 property

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

Type public property

The Attribute type.
public AttributeType Type
return AttributeType

Value public property

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