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

#include <stun.h>

Inheritance diagram for cricket::StunMessage:
cricket::IceMessage cricket::IceMessage cricket::RelayMessage cricket::RelayMessage cricket::TurnMessage cricket::TurnMessage

Public Member Functions

 StunMessage ()
 
virtual ~StunMessage ()
 
int type () const
 
size_t length () const
 
const std::stringtransaction_id () const
 
bool IsLegacy () const
 
void SetType (int type)
 
bool SetTransactionID (const std::string &str)
 
const StunAddressAttributeGetAddress (int type) const
 
const StunUInt32AttributeGetUInt32 (int type) const
 
const StunUInt64AttributeGetUInt64 (int type) const
 
const StunByteStringAttributeGetByteString (int type) const
 
const StunErrorCodeAttributeGetErrorCode () const
 
const StunUInt16ListAttributeGetUnknownAttributes () const
 
void AddAttribute (StunAttribute *attr)
 
bool AddMessageIntegrity (const std::string &password)
 
bool AddMessageIntegrity (const char *key, size_t keylen)
 
bool AddFingerprint ()
 
bool Read (rtc::ByteBufferReader *buf)
 
bool Write (rtc::ByteBufferWriter *buf) const
 
virtual StunMessageCreateNew () const
 
 StunMessage ()
 
virtual ~StunMessage ()
 
int type () const
 
size_t length () const
 
const std::stringtransaction_id () const
 
bool IsLegacy () const
 
void SetType (int type)
 
bool SetTransactionID (const std::string &str)
 
const StunAddressAttributeGetAddress (int type) const
 
const StunUInt32AttributeGetUInt32 (int type) const
 
const StunUInt64AttributeGetUInt64 (int type) const
 
const StunByteStringAttributeGetByteString (int type) const
 
const StunErrorCodeAttributeGetErrorCode () const
 
const StunUInt16ListAttributeGetUnknownAttributes () const
 
void AddAttribute (StunAttribute *attr)
 
bool AddMessageIntegrity (const std::string &password)
 
bool AddMessageIntegrity (const char *key, size_t keylen)
 
bool AddFingerprint ()
 
bool Read (rtc::ByteBufferReader *buf)
 
bool Write (rtc::ByteBufferWriter *buf) const
 
virtual StunMessageCreateNew () const
 

Static Public Member Functions

static bool ValidateMessageIntegrity (const char *data, size_t size, const std::string &password)
 
static bool ValidateFingerprint (const char *data, size_t size)
 
static bool ValidateMessageIntegrity (const char *data, size_t size, const std::string &password)
 
static bool ValidateFingerprint (const char *data, size_t size)
 

Protected Member Functions

virtual StunAttributeValueType GetAttributeValueType (int type) const
 
virtual StunAttributeValueType GetAttributeValueType (int type) const
 

Constructor & Destructor Documentation

◆ StunMessage() [1/2]

cricket::StunMessage::StunMessage ( )

◆ ~StunMessage() [1/2]

cricket::StunMessage::~StunMessage ( )
virtual

◆ StunMessage() [2/2]

cricket::StunMessage::StunMessage ( )

◆ ~StunMessage() [2/2]

virtual cricket::StunMessage::~StunMessage ( )
virtual

Member Function Documentation

◆ AddAttribute() [1/2]

void cricket::StunMessage::AddAttribute ( StunAttribute attr)

◆ AddAttribute() [2/2]

void cricket::StunMessage::AddAttribute ( StunAttribute attr)

◆ AddFingerprint() [1/2]

bool cricket::StunMessage::AddFingerprint ( )

◆ AddFingerprint() [2/2]

bool cricket::StunMessage::AddFingerprint ( )

◆ AddMessageIntegrity() [1/4]

bool cricket::StunMessage::AddMessageIntegrity ( const std::string password)

◆ AddMessageIntegrity() [2/4]

bool cricket::StunMessage::AddMessageIntegrity ( const std::string password)

◆ AddMessageIntegrity() [3/4]

bool cricket::StunMessage::AddMessageIntegrity ( const char *  key,
size_t  keylen 
)

◆ AddMessageIntegrity() [4/4]

bool cricket::StunMessage::AddMessageIntegrity ( const char *  key,
size_t  keylen 
)

◆ CreateNew() [1/2]

virtual StunMessage* cricket::StunMessage::CreateNew ( ) const
inlinevirtual

◆ CreateNew() [2/2]

virtual StunMessage* cricket::StunMessage::CreateNew ( ) const
inlinevirtual

◆ GetAddress() [1/2]

const StunAddressAttribute * cricket::StunMessage::GetAddress ( int  type) const

◆ GetAddress() [2/2]

const StunAddressAttribute* cricket::StunMessage::GetAddress ( int  type) const

◆ GetAttributeValueType() [1/2]

StunAttributeValueType cricket::StunMessage::GetAttributeValueType ( int  type) const
protectedvirtual

◆ GetAttributeValueType() [2/2]

virtual StunAttributeValueType cricket::StunMessage::GetAttributeValueType ( int  type) const
protectedvirtual

◆ GetByteString() [1/2]

const StunByteStringAttribute* cricket::StunMessage::GetByteString ( int  type) const

◆ GetByteString() [2/2]

const StunByteStringAttribute * cricket::StunMessage::GetByteString ( int  type) const

◆ GetErrorCode() [1/2]

const StunErrorCodeAttribute* cricket::StunMessage::GetErrorCode ( ) const

◆ GetErrorCode() [2/2]

const StunErrorCodeAttribute * cricket::StunMessage::GetErrorCode ( ) const

◆ GetUInt32() [1/2]

const StunUInt32Attribute * cricket::StunMessage::GetUInt32 ( int  type) const

◆ GetUInt32() [2/2]

const StunUInt32Attribute* cricket::StunMessage::GetUInt32 ( int  type) const

◆ GetUInt64() [1/2]

const StunUInt64Attribute * cricket::StunMessage::GetUInt64 ( int  type) const

◆ GetUInt64() [2/2]

const StunUInt64Attribute* cricket::StunMessage::GetUInt64 ( int  type) const

◆ GetUnknownAttributes() [1/2]

const StunUInt16ListAttribute* cricket::StunMessage::GetUnknownAttributes ( ) const

◆ GetUnknownAttributes() [2/2]

const StunUInt16ListAttribute * cricket::StunMessage::GetUnknownAttributes ( ) const

◆ IsLegacy() [1/2]

bool cricket::StunMessage::IsLegacy ( ) const

◆ IsLegacy() [2/2]

bool cricket::StunMessage::IsLegacy ( ) const

◆ length() [1/2]

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

◆ length() [2/2]

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

◆ Read() [1/2]

bool cricket::StunMessage::Read ( rtc::ByteBufferReader buf)

◆ Read() [2/2]

bool cricket::StunMessage::Read ( rtc::ByteBufferReader buf)

◆ SetTransactionID() [1/2]

bool cricket::StunMessage::SetTransactionID ( const std::string str)

◆ SetTransactionID() [2/2]

bool cricket::StunMessage::SetTransactionID ( const std::string str)

◆ SetType() [1/2]

void cricket::StunMessage::SetType ( int  type)
inline

◆ SetType() [2/2]

void cricket::StunMessage::SetType ( int  type)
inline

◆ transaction_id() [1/2]

const std::string& cricket::StunMessage::transaction_id ( ) const
inline

◆ transaction_id() [2/2]

const std::string& cricket::StunMessage::transaction_id ( ) const
inline

◆ type() [1/2]

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

◆ type() [2/2]

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

◆ ValidateFingerprint() [1/2]

bool cricket::StunMessage::ValidateFingerprint ( const char *  data,
size_t  size 
)
static

◆ ValidateFingerprint() [2/2]

static bool cricket::StunMessage::ValidateFingerprint ( const char *  data,
size_t  size 
)
static

◆ ValidateMessageIntegrity() [1/2]

static bool cricket::StunMessage::ValidateMessageIntegrity ( const char *  data,
size_t  size,
const std::string password 
)
static

◆ ValidateMessageIntegrity() [2/2]

bool cricket::StunMessage::ValidateMessageIntegrity ( const char *  data,
size_t  size,
const std::string password 
)
static

◆ Write() [1/2]

bool cricket::StunMessage::Write ( rtc::ByteBufferWriter buf) const

◆ Write() [2/2]

bool cricket::StunMessage::Write ( rtc::ByteBufferWriter buf) const

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