Home
last modified time | relevance | path

Searched refs:StunAttribute (Results 1 – 9 of 9) sorted by relevance

/external/webrtc/webrtc/p2p/base/
Dstun.cc50 attrs_ = new std::vector<StunAttribute*>(); in StunMessage()
74 bool StunMessage::AddAttribute(StunAttribute* attr) { in AddAttribute()
94 const StunAttribute* mapped_address = in GetAddress()
340 StunAttribute* attr = CreateAttribute(attr_type, attr_length); in Read()
395 StunAttribute* StunMessage::CreateAttribute(int type, size_t length) /*const*/ { in CreateAttribute()
397 return StunAttribute::Create(value_type, type, static_cast<uint16_t>(length), in CreateAttribute()
401 const StunAttribute* StunMessage::GetAttribute(int type) const { in GetAttribute()
416 StunAttribute::StunAttribute(uint16_t type, uint16_t length) in StunAttribute() function in cricket::StunAttribute
420 void StunAttribute::ConsumePadding(rtc::ByteBuffer* buf) const { in ConsumePadding()
427 void StunAttribute::WritePadding(rtc::ByteBuffer* buf) const { in WritePadding()
[all …]
Dstun.h119 class StunAttribute; variable
164 bool AddAttribute(StunAttribute* attr);
197 StunAttribute* CreateAttribute(int type, size_t length) /* const*/;
198 const StunAttribute* GetAttribute(int type) const;
204 std::vector<StunAttribute*>* attrs_;
208 class StunAttribute {
210 virtual ~StunAttribute() { in ~StunAttribute()
231 static StunAttribute* Create(StunAttributeValueType value_type,
246 StunAttribute(uint16_t type, uint16_t length);
257 class StunAddressAttribute : public StunAttribute {
[all …]
Dstun_unittest.cc812 StunAttribute::CreateAddress(STUN_ATTR_MAPPED_ADDRESS); in TEST_F()
827 StunAttribute::CreateAddress(STUN_ATTR_MAPPED_ADDRESS); in TEST_F()
839 StunAttribute::CreateAddress(STUN_ATTR_DESTINATION_ADDRESS); in TEST_F()
847 StunAttribute::CreateAddress(STUN_ATTR_DESTINATION_ADDRESS); in TEST_F()
871 StunAttribute::CreateAddress(STUN_ATTR_MAPPED_ADDRESS); in TEST_F()
900 StunAttribute::CreateAddress(STUN_ATTR_MAPPED_ADDRESS); in TEST_F()
929 StunAttribute::CreateXorAddress(STUN_ATTR_XOR_MAPPED_ADDRESS); in TEST_F()
959 StunAttribute::CreateXorAddress(STUN_ATTR_XOR_MAPPED_ADDRESS); in TEST_F()
1058 StunErrorCodeAttribute* errorcode = StunAttribute::CreateErrorCode(); in TEST_F()
1080 StunUInt16ListAttribute* list = StunAttribute::CreateUnknownAttributes(); in TEST_F()
[all …]
Dstunserver.cc65 StunErrorCodeAttribute* err_code = StunAttribute::CreateErrorCode(); in SendErrorResponse()
91 mapped_addr = StunAttribute::CreateAddress(STUN_ATTR_MAPPED_ADDRESS); in GetStunBindReqponse()
93 mapped_addr = StunAttribute::CreateXorAddress(STUN_ATTR_XOR_MAPPED_ADDRESS); in GetStunBindReqponse()
Drelayserver.cc63 StunAttribute::CreateByteString(cricket::STUN_ATTR_MAGIC_COOKIE); in SendStunError()
72 StunErrorCodeAttribute* err_code = StunAttribute::CreateErrorCode(); in SendStunError()
422 StunAttribute::CreateByteString(cricket::STUN_ATTR_MAGIC_COOKIE); in HandleStunAllocate()
432 StunAttribute::CreateAddress(STUN_ATTR_MAPPED_ADDRESS); in HandleStunAllocate()
438 StunAttribute::CreateUInt32(STUN_ATTR_LIFETIME); in HandleStunAllocate()
495 StunAttribute::CreateByteString(cricket::STUN_ATTR_MAGIC_COOKIE); in HandleStunSend()
501 StunAttribute::CreateUInt32(cricket::STUN_ATTR_OPTIONS); in HandleStunSend()
605 StunAttribute::CreateByteString(cricket::STUN_ATTR_MAGIC_COOKIE); in Send()
611 StunAttribute::CreateAddress(STUN_ATTR_SOURCE_ADDRESS2); in Send()
617 StunAttribute::CreateByteString(STUN_ATTR_DATA); in Send()
Drelayserver_unittest.cc150 StunAttribute::CreateByteString(STUN_ATTR_MAGIC_COOKIE); in AddMagicCookieAttr()
156 StunAttribute::CreateByteString(STUN_ATTR_USERNAME); in AddUsernameAttr()
162 StunAttribute::CreateUInt32(STUN_ATTR_LIFETIME); in AddLifetimeAttr()
168 StunAttribute::CreateAddress(STUN_ATTR_DESTINATION_ADDRESS); in AddDestinationAttr()
467 StunAttribute::CreateByteString(STUN_ATTR_DATA); in TEST_F()
510 StunAttribute::CreateByteString(STUN_ATTR_DATA); in TEST_F()
Drelayport.cc578 StunAttribute::CreateByteString(STUN_ATTR_MAGIC_COOKIE); in SendTo()
584 StunAttribute::CreateByteString(STUN_ATTR_USERNAME); in SendTo()
590 StunAttribute::CreateAddress(STUN_ATTR_DESTINATION_ADDRESS); in SendTo()
598 StunAttribute::CreateUInt32(STUN_ATTR_OPTIONS); in SendTo()
604 StunAttribute::CreateByteString(STUN_ATTR_DATA); in SendTo()
789 StunAttribute::CreateByteString(STUN_ATTR_USERNAME); in Prepare()
Dturnport.cc1033 StunUInt32Attribute* transport_attr = StunAttribute::CreateUInt32( in Prepare()
Dport.cc602 StunErrorCodeAttribute* error_attr = StunAttribute::CreateErrorCode(); in SendBindingErrorResponse()