webkit  2cdf99a9e3038c7e01b3c37e8ad903ecbe5eecf1
https://github.com/WebKit/webkit
Public Member Functions | Static Public Member Functions | Protected Member Functions | List of all members
cricket::StunAttribute Class Referenceabstract

#include <stun.h>

Inheritance diagram for cricket::StunAttribute:
cricket::StunAddressAttribute cricket::StunAddressAttribute cricket::StunByteStringAttribute cricket::StunByteStringAttribute cricket::StunErrorCodeAttribute cricket::StunErrorCodeAttribute cricket::StunUInt16ListAttribute cricket::StunUInt16ListAttribute cricket::StunUInt32Attribute cricket::StunUInt32Attribute cricket::StunUInt64Attribute cricket::StunUInt64Attribute

Public Member Functions

virtual ~StunAttribute ()
 
int type () const
 
size_t length () const
 
virtual StunAttributeValueType value_type () const =0
 
virtual void SetOwner (StunMessage *)
 
virtual bool Read (rtc::ByteBufferReader *buf)=0
 
virtual bool Write (rtc::ByteBufferWriter *buf) const =0
 
virtual ~StunAttribute ()
 
int type () const
 
size_t length () const
 
virtual StunAttributeValueType value_type () const =0
 
virtual void SetOwner (StunMessage *)
 
virtual bool Read (rtc::ByteBufferReader *buf)=0
 
virtual bool Write (rtc::ByteBufferWriter *buf) const =0
 

Static Public Member Functions

static StunAttributeCreate (StunAttributeValueType value_type, uint16_t type, uint16_t length, StunMessage *owner)
 
static StunAddressAttributeCreateAddress (uint16_t type)
 
static StunXorAddressAttributeCreateXorAddress (uint16_t type)
 
static StunUInt32AttributeCreateUInt32 (uint16_t type)
 
static StunUInt64AttributeCreateUInt64 (uint16_t type)
 
static StunByteStringAttributeCreateByteString (uint16_t type)
 
static StunErrorCodeAttributeCreateErrorCode ()
 
static StunUInt16ListAttributeCreateUnknownAttributes ()
 
static StunAttributeCreate (StunAttributeValueType value_type, uint16_t type, uint16_t length, StunMessage *owner)
 
static StunAddressAttributeCreateAddress (uint16_t type)
 
static StunXorAddressAttributeCreateXorAddress (uint16_t type)
 
static StunUInt32AttributeCreateUInt32 (uint16_t type)
 
static StunUInt64AttributeCreateUInt64 (uint16_t type)
 
static StunByteStringAttributeCreateByteString (uint16_t type)
 
static StunErrorCodeAttributeCreateErrorCode ()
 
static StunUInt16ListAttributeCreateUnknownAttributes ()
 

Protected Member Functions

 StunAttribute (uint16_t type, uint16_t length)
 
void SetLength (uint16_t length)
 
void WritePadding (rtc::ByteBufferWriter *buf) const
 
void ConsumePadding (rtc::ByteBufferReader *buf) const
 
 StunAttribute (uint16_t type, uint16_t length)
 
void SetLength (uint16_t length)
 
void WritePadding (rtc::ByteBufferWriter *buf) const
 
void ConsumePadding (rtc::ByteBufferReader *buf) const
 

Constructor & Destructor Documentation

◆ ~StunAttribute() [1/2]

virtual cricket::StunAttribute::~StunAttribute ( )
inlinevirtual

◆ StunAttribute() [1/2]

cricket::StunAttribute::StunAttribute ( uint16_t  type,
uint16_t  length 
)
protected

◆ ~StunAttribute() [2/2]

virtual cricket::StunAttribute::~StunAttribute ( )
inlinevirtual

◆ StunAttribute() [2/2]

cricket::StunAttribute::StunAttribute ( uint16_t  type,
uint16_t  length 
)
protected

Member Function Documentation

◆ ConsumePadding() [1/2]

void cricket::StunAttribute::ConsumePadding ( rtc::ByteBufferReader buf) const
protected

◆ ConsumePadding() [2/2]

void cricket::StunAttribute::ConsumePadding ( rtc::ByteBufferReader buf) const
protected

◆ Create() [1/2]

StunAttribute * cricket::StunAttribute::Create ( StunAttributeValueType  value_type,
uint16_t  type,
uint16_t  length,
StunMessage owner 
)
static

◆ Create() [2/2]

static StunAttribute* cricket::StunAttribute::Create ( StunAttributeValueType  value_type,
uint16_t  type,
uint16_t  length,
StunMessage owner 
)
static

◆ CreateAddress() [1/2]

StunAddressAttribute * cricket::StunAttribute::CreateAddress ( uint16_t  type)
static

◆ CreateAddress() [2/2]

static StunAddressAttribute* cricket::StunAttribute::CreateAddress ( uint16_t  type)
static

◆ CreateByteString() [1/2]

StunByteStringAttribute * cricket::StunAttribute::CreateByteString ( uint16_t  type)
static

◆ CreateByteString() [2/2]

static StunByteStringAttribute* cricket::StunAttribute::CreateByteString ( uint16_t  type)
static

◆ CreateErrorCode() [1/2]

StunErrorCodeAttribute * cricket::StunAttribute::CreateErrorCode ( )
static

◆ CreateErrorCode() [2/2]

static StunErrorCodeAttribute* cricket::StunAttribute::CreateErrorCode ( )
static

◆ CreateUInt32() [1/2]

StunUInt32Attribute * cricket::StunAttribute::CreateUInt32 ( uint16_t  type)
static

◆ CreateUInt32() [2/2]

static StunUInt32Attribute* cricket::StunAttribute::CreateUInt32 ( uint16_t  type)
static

◆ CreateUInt64() [1/2]

StunUInt64Attribute * cricket::StunAttribute::CreateUInt64 ( uint16_t  type)
static

◆ CreateUInt64() [2/2]

static StunUInt64Attribute* cricket::StunAttribute::CreateUInt64 ( uint16_t  type)
static

◆ CreateUnknownAttributes() [1/2]

static StunUInt16ListAttribute* cricket::StunAttribute::CreateUnknownAttributes ( )
static

◆ CreateUnknownAttributes() [2/2]

StunUInt16ListAttribute * cricket::StunAttribute::CreateUnknownAttributes ( )
static

◆ CreateXorAddress() [1/2]

StunXorAddressAttribute * cricket::StunAttribute::CreateXorAddress ( uint16_t  type)
static

◆ CreateXorAddress() [2/2]

static StunXorAddressAttribute* cricket::StunAttribute::CreateXorAddress ( uint16_t  type)
static

◆ length() [1/2]

size_t cricket::StunAttribute::length ( void  ) const
inline

◆ length() [2/2]

size_t cricket::StunAttribute::length ( ) const
inline

◆ Read() [1/2]

virtual bool cricket::StunAttribute::Read ( rtc::ByteBufferReader buf)
pure virtual

◆ Read() [2/2]

virtual bool cricket::StunAttribute::Read ( rtc::ByteBufferReader buf)
pure virtual

◆ SetLength() [1/2]

void cricket::StunAttribute::SetLength ( uint16_t  length)
inlineprotected

◆ SetLength() [2/2]

void cricket::StunAttribute::SetLength ( uint16_t  length)
inlineprotected

◆ SetOwner() [1/2]

virtual void cricket::StunAttribute::SetOwner ( StunMessage )
inlinevirtual

◆ SetOwner() [2/2]

virtual void cricket::StunAttribute::SetOwner ( StunMessage )
inlinevirtual

◆ type() [1/2]

int cricket::StunAttribute::type ( ) const
inline

◆ type() [2/2]

int cricket::StunAttribute::type ( ) const
inline

◆ value_type() [1/2]

virtual StunAttributeValueType cricket::StunAttribute::value_type ( ) const
pure virtual

◆ value_type() [2/2]

virtual StunAttributeValueType cricket::StunAttribute::value_type ( ) const
pure virtual

◆ Write() [1/2]

virtual bool cricket::StunAttribute::Write ( rtc::ByteBufferWriter buf) const
pure virtual

◆ Write() [2/2]

virtual bool cricket::StunAttribute::Write ( rtc::ByteBufferWriter buf) const
pure virtual

◆ WritePadding() [1/2]

void cricket::StunAttribute::WritePadding ( rtc::ByteBufferWriter buf) const
protected

◆ WritePadding() [2/2]

void cricket::StunAttribute::WritePadding ( rtc::ByteBufferWriter buf) const
protected

The documentation for this class was generated from the following files: