webkit  2cdf99a9e3038c7e01b3c37e8ad903ecbe5eecf1
https://github.com/WebKit/webkit
Public Member Functions | Static Public Attributes | List of all members
cricket::StunErrorCodeAttribute Class Reference

#include <stun.h>

Inheritance diagram for cricket::StunErrorCodeAttribute:
cricket::StunAttribute cricket::StunAttribute

Public Member Functions

 StunErrorCodeAttribute (uint16_t type, int code, const std::string &reason)
 
 StunErrorCodeAttribute (uint16_t type, uint16_t length)
 
 ~StunErrorCodeAttribute ()
 
virtual StunAttributeValueType value_type () const
 
int code () const
 
void SetCode (int code)
 
int eclass () const
 
int number () const
 
const std::stringreason () const
 
void SetClass (uint8_t eclass)
 
void SetNumber (uint8_t number)
 
void SetReason (const std::string &reason)
 
bool Read (rtc::ByteBufferReader *buf)
 
bool Write (rtc::ByteBufferWriter *buf) const
 
 StunErrorCodeAttribute (uint16_t type, int code, const std::string &reason)
 
 StunErrorCodeAttribute (uint16_t type, uint16_t length)
 
 ~StunErrorCodeAttribute ()
 
virtual StunAttributeValueType value_type () const
 
int code () const
 
void SetCode (int code)
 
int eclass () const
 
int number () const
 
const std::stringreason () const
 
void SetClass (uint8_t eclass)
 
void SetNumber (uint8_t number)
 
void SetReason (const std::string &reason)
 
bool Read (rtc::ByteBufferReader *buf)
 
bool Write (rtc::ByteBufferWriter *buf) const
 
- Public Member Functions inherited from cricket::StunAttribute
virtual ~StunAttribute ()
 
int type () const
 
size_t length () const
 
virtual void SetOwner (StunMessage *)
 
virtual ~StunAttribute ()
 
int type () const
 
size_t length () const
 
virtual void SetOwner (StunMessage *)
 

Static Public Attributes

static const uint16_t MIN_SIZE = 4
 

Additional Inherited Members

- Static Public Member Functions inherited from cricket::StunAttribute
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 inherited from cricket::StunAttribute
 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

◆ StunErrorCodeAttribute() [1/4]

cricket::StunErrorCodeAttribute::StunErrorCodeAttribute ( uint16_t  type,
int  code,
const std::string reason 
)

◆ StunErrorCodeAttribute() [2/4]

cricket::StunErrorCodeAttribute::StunErrorCodeAttribute ( uint16_t  type,
uint16_t  length 
)

◆ ~StunErrorCodeAttribute() [1/2]

cricket::StunErrorCodeAttribute::~StunErrorCodeAttribute ( )

◆ StunErrorCodeAttribute() [3/4]

cricket::StunErrorCodeAttribute::StunErrorCodeAttribute ( uint16_t  type,
int  code,
const std::string reason 
)

◆ StunErrorCodeAttribute() [4/4]

cricket::StunErrorCodeAttribute::StunErrorCodeAttribute ( uint16_t  type,
uint16_t  length 
)

◆ ~StunErrorCodeAttribute() [2/2]

cricket::StunErrorCodeAttribute::~StunErrorCodeAttribute ( )

Member Function Documentation

◆ code() [1/2]

int cricket::StunErrorCodeAttribute::code ( ) const

◆ code() [2/2]

int cricket::StunErrorCodeAttribute::code ( ) const

◆ eclass() [1/2]

int cricket::StunErrorCodeAttribute::eclass ( ) const
inline

◆ eclass() [2/2]

int cricket::StunErrorCodeAttribute::eclass ( ) const
inline

◆ number() [1/2]

int cricket::StunErrorCodeAttribute::number ( ) const
inline

◆ number() [2/2]

int cricket::StunErrorCodeAttribute::number ( ) const
inline

◆ Read() [1/2]

bool cricket::StunErrorCodeAttribute::Read ( rtc::ByteBufferReader buf)
virtual

◆ Read() [2/2]

bool cricket::StunErrorCodeAttribute::Read ( rtc::ByteBufferReader buf)
virtual

◆ reason() [1/2]

const std::string& cricket::StunErrorCodeAttribute::reason ( ) const
inline

◆ reason() [2/2]

const std::string& cricket::StunErrorCodeAttribute::reason ( ) const
inline

◆ SetClass() [1/2]

void cricket::StunErrorCodeAttribute::SetClass ( uint8_t  eclass)
inline

◆ SetClass() [2/2]

void cricket::StunErrorCodeAttribute::SetClass ( uint8_t  eclass)
inline

◆ SetCode() [1/2]

void cricket::StunErrorCodeAttribute::SetCode ( int  code)

◆ SetCode() [2/2]

void cricket::StunErrorCodeAttribute::SetCode ( int  code)

◆ SetNumber() [1/2]

void cricket::StunErrorCodeAttribute::SetNumber ( uint8_t  number)
inline

◆ SetNumber() [2/2]

void cricket::StunErrorCodeAttribute::SetNumber ( uint8_t  number)
inline

◆ SetReason() [1/2]

void cricket::StunErrorCodeAttribute::SetReason ( const std::string reason)

◆ SetReason() [2/2]

void cricket::StunErrorCodeAttribute::SetReason ( const std::string reason)

◆ value_type() [1/2]

virtual StunAttributeValueType cricket::StunErrorCodeAttribute::value_type ( ) const
inlinevirtual

◆ value_type() [2/2]

virtual StunAttributeValueType cricket::StunErrorCodeAttribute::value_type ( ) const
inlinevirtual

◆ Write() [1/2]

bool cricket::StunErrorCodeAttribute::Write ( rtc::ByteBufferWriter buf) const
virtual

◆ Write() [2/2]

bool cricket::StunErrorCodeAttribute::Write ( rtc::ByteBufferWriter buf) const
virtual

Member Data Documentation

◆ MIN_SIZE

static const uint16_t cricket::StunErrorCodeAttribute::MIN_SIZE = 4
static

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