Lines Matching refs:StunAddressAttribute
89 const StunAddressAttribute* StunMessage::GetAddress(int type) const {
98 return reinterpret_cast<const StunAddressAttribute*>(mapped_address);
102 return static_cast<const StunAddressAttribute*>(GetAttribute(type));
441 return new StunAddressAttribute(type, length);
459 StunAddressAttribute* StunAttribute::CreateAddress(uint16_t type) {
460 return new StunAddressAttribute(type, 0);
488 StunAddressAttribute::StunAddressAttribute(uint16_t type,
494 StunAddressAttribute::StunAddressAttribute(uint16_t type, uint16_t length)
498 bool StunAddressAttribute::Read(ByteBuffer* buf) {
536 bool StunAddressAttribute::Write(ByteBuffer* buf) const {
562 : StunAddressAttribute(type, addr), owner_(NULL) {
568 : StunAddressAttribute(type, length), owner_(owner) {
608 if (!StunAddressAttribute::Read(buf))