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

#include <stun.h>

Inheritance diagram for cricket::StunXorAddressAttribute:
cricket::StunAddressAttribute cricket::StunAddressAttribute cricket::StunAttribute cricket::StunAttribute cricket::StunAttribute cricket::StunAttribute

Public Member Functions

 StunXorAddressAttribute (uint16_t type, const rtc::SocketAddress &addr)
 
 StunXorAddressAttribute (uint16_t type, uint16_t length, StunMessage *owner)
 
virtual StunAttributeValueType value_type () const
 
virtual void SetOwner (StunMessage *owner)
 
virtual bool Read (rtc::ByteBufferReader *buf)
 
virtual bool Write (rtc::ByteBufferWriter *buf) const
 
 StunXorAddressAttribute (uint16_t type, const rtc::SocketAddress &addr)
 
 StunXorAddressAttribute (uint16_t type, uint16_t length, StunMessage *owner)
 
virtual StunAttributeValueType value_type () const
 
virtual void SetOwner (StunMessage *owner)
 
virtual bool Read (rtc::ByteBufferReader *buf)
 
virtual bool Write (rtc::ByteBufferWriter *buf) const
 
- Public Member Functions inherited from cricket::StunAddressAttribute
 StunAddressAttribute (uint16_t type, const rtc::SocketAddress &addr)
 
 StunAddressAttribute (uint16_t type, uint16_t length)
 
StunAddressFamily family () const
 
const rtc::SocketAddressGetAddress () const
 
const rtc::IPAddressipaddr () const
 
uint16_t port () const
 
void SetAddress (const rtc::SocketAddress &addr)
 
void SetIP (const rtc::IPAddress &ip)
 
void SetPort (uint16_t port)
 
 StunAddressAttribute (uint16_t type, const rtc::SocketAddress &addr)
 
 StunAddressAttribute (uint16_t type, uint16_t length)
 
StunAddressFamily family () const
 
const rtc::SocketAddressGetAddress () const
 
const rtc::IPAddressipaddr () const
 
uint16_t port () const
 
void SetAddress (const rtc::SocketAddress &addr)
 
void SetIP (const rtc::IPAddress &ip)
 
void SetPort (uint16_t port)
 
- Public Member Functions inherited from cricket::StunAttribute
virtual ~StunAttribute ()
 
int type () const
 
size_t length () const
 
virtual ~StunAttribute ()
 
int type () const
 
size_t length () const
 

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 ()
 
- Static Public Attributes inherited from cricket::StunAddressAttribute
static const uint16_t SIZE_UNDEF = 0
 
static const uint16_t SIZE_IP4 = 8
 
static const uint16_t SIZE_IP6 = 20
 
- 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

◆ StunXorAddressAttribute() [1/4]

cricket::StunXorAddressAttribute::StunXorAddressAttribute ( uint16_t  type,
const rtc::SocketAddress addr 
)

◆ StunXorAddressAttribute() [2/4]

cricket::StunXorAddressAttribute::StunXorAddressAttribute ( uint16_t  type,
uint16_t  length,
StunMessage owner 
)

◆ StunXorAddressAttribute() [3/4]

cricket::StunXorAddressAttribute::StunXorAddressAttribute ( uint16_t  type,
const rtc::SocketAddress addr 
)

◆ StunXorAddressAttribute() [4/4]

cricket::StunXorAddressAttribute::StunXorAddressAttribute ( uint16_t  type,
uint16_t  length,
StunMessage owner 
)

Member Function Documentation

◆ Read() [1/2]

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

Reimplemented from cricket::StunAddressAttribute.

◆ Read() [2/2]

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

Reimplemented from cricket::StunAddressAttribute.

◆ SetOwner() [1/2]

virtual void cricket::StunXorAddressAttribute::SetOwner ( StunMessage owner)
inlinevirtual

Reimplemented from cricket::StunAttribute.

◆ SetOwner() [2/2]

virtual void cricket::StunXorAddressAttribute::SetOwner ( StunMessage owner)
inlinevirtual

Reimplemented from cricket::StunAttribute.

◆ value_type() [1/2]

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

Reimplemented from cricket::StunAddressAttribute.

◆ value_type() [2/2]

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

Reimplemented from cricket::StunAddressAttribute.

◆ Write() [1/2]

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

Reimplemented from cricket::StunAddressAttribute.

◆ Write() [2/2]

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

Reimplemented from cricket::StunAddressAttribute.


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