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

#include <stun.h>

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

Public Member Functions

 StunAddressAttribute (uint16_t type, const rtc::SocketAddress &addr)
 
 StunAddressAttribute (uint16_t type, uint16_t length)
 
virtual StunAttributeValueType value_type () const
 
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)
 
virtual bool Read (rtc::ByteBufferReader *buf)
 
virtual bool Write (rtc::ByteBufferWriter *buf) const
 
 StunAddressAttribute (uint16_t type, const rtc::SocketAddress &addr)
 
 StunAddressAttribute (uint16_t type, uint16_t length)
 
virtual StunAttributeValueType value_type () const
 
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)
 
virtual bool Read (rtc::ByteBufferReader *buf)
 
virtual 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 SIZE_UNDEF = 0
 
static const uint16_t SIZE_IP4 = 8
 
static const uint16_t SIZE_IP6 = 20
 

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

◆ StunAddressAttribute() [1/4]

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

◆ StunAddressAttribute() [2/4]

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

◆ StunAddressAttribute() [3/4]

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

◆ StunAddressAttribute() [4/4]

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

Member Function Documentation

◆ family() [1/2]

StunAddressFamily cricket::StunAddressAttribute::family ( ) const
inline

◆ family() [2/2]

StunAddressFamily cricket::StunAddressAttribute::family ( ) const
inline

◆ GetAddress() [1/2]

const rtc::SocketAddress& cricket::StunAddressAttribute::GetAddress ( ) const
inline

◆ GetAddress() [2/2]

const rtc::SocketAddress& cricket::StunAddressAttribute::GetAddress ( ) const
inline

◆ ipaddr() [1/2]

const rtc::IPAddress& cricket::StunAddressAttribute::ipaddr ( ) const
inline

◆ ipaddr() [2/2]

const rtc::IPAddress& cricket::StunAddressAttribute::ipaddr ( ) const
inline

◆ port() [1/2]

uint16_t cricket::StunAddressAttribute::port ( ) const
inline

◆ port() [2/2]

uint16_t cricket::StunAddressAttribute::port ( ) const
inline

◆ Read() [1/2]

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

◆ Read() [2/2]

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

◆ SetAddress() [1/2]

void cricket::StunAddressAttribute::SetAddress ( const rtc::SocketAddress addr)
inline

◆ SetAddress() [2/2]

void cricket::StunAddressAttribute::SetAddress ( const rtc::SocketAddress addr)
inline

◆ SetIP() [1/2]

void cricket::StunAddressAttribute::SetIP ( const rtc::IPAddress ip)
inline

◆ SetIP() [2/2]

void cricket::StunAddressAttribute::SetIP ( const rtc::IPAddress ip)
inline

◆ SetPort() [1/2]

void cricket::StunAddressAttribute::SetPort ( uint16_t  port)
inline

◆ SetPort() [2/2]

void cricket::StunAddressAttribute::SetPort ( uint16_t  port)
inline

◆ value_type() [1/2]

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

◆ value_type() [2/2]

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

◆ Write() [1/2]

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

◆ Write() [2/2]

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

Member Data Documentation

◆ SIZE_IP4

static const uint16_t cricket::StunAddressAttribute::SIZE_IP4 = 8
static

◆ SIZE_IP6

static const uint16_t cricket::StunAddressAttribute::SIZE_IP6 = 20
static

◆ SIZE_UNDEF

static const uint16_t cricket::StunAddressAttribute::SIZE_UNDEF = 0
static

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