Searched refs:StunAttribute (Results 1 – 9 of 9) sorted by relevance
98 void StunMessage::AddAttribute(std::unique_ptr<StunAttribute> attr) { in AddAttribute()116 std::unique_ptr<StunAttribute> StunMessage::RemoveAttribute(int type) { in RemoveAttribute()117 std::unique_ptr<StunAttribute> attribute; in RemoveAttribute()161 const StunAttribute* mapped_address = in GetAddress()482 std::unique_ptr<StunAttribute> attr( in Read()567 StunAttribute* StunMessage::CreateAttribute(int type, size_t length) /*const*/ { in CreateAttribute()570 return StunAttribute::Create(value_type, type, in CreateAttribute()574 return StunAttribute::Create(STUN_VALUE_BYTE_STRING, type, in CreateAttribute()581 const StunAttribute* StunMessage::GetAttribute(int type) const { in GetAttribute()603 const StunAttribute* other_attr = other->GetAttribute(attr->type()); in EqualAttributes()[all …]
133 class StunAttribute; variable185 void AddAttribute(std::unique_ptr<StunAttribute> attr);188 std::unique_ptr<StunAttribute> RemoveAttribute(int type);250 std::vector<std::unique_ptr<StunAttribute>> attrs_;253 StunAttribute* CreateAttribute(int type, size_t length) /* const*/;254 const StunAttribute* GetAttribute(int type) const;274 class StunAttribute {276 virtual ~StunAttribute() {} in ~StunAttribute()296 static StunAttribute* Create(StunAttributeValueType value_type,315 StunAttribute(uint16_t type, uint16_t length);[all …]
872 auto addr = StunAttribute::CreateAddress(STUN_ATTR_MAPPED_ADDRESS); in TEST_F()885 auto addr = StunAttribute::CreateAddress(STUN_ATTR_MAPPED_ADDRESS); in TEST_F()895 auto addr = StunAttribute::CreateAddress(STUN_ATTR_DESTINATION_ADDRESS); in TEST_F()902 auto addr2 = StunAttribute::CreateAddress(STUN_ATTR_DESTINATION_ADDRESS); in TEST_F()922 auto addr = StunAttribute::CreateAddress(STUN_ATTR_MAPPED_ADDRESS); in TEST_F()951 auto addr = StunAttribute::CreateAddress(STUN_ATTR_MAPPED_ADDRESS); in TEST_F()980 auto addr = StunAttribute::CreateXorAddress(STUN_ATTR_XOR_MAPPED_ADDRESS); in TEST_F()1010 auto addr = StunAttribute::CreateXorAddress(STUN_ATTR_XOR_MAPPED_ADDRESS); in TEST_F()1118 auto errorcode = StunAttribute::CreateErrorCode(); in TEST_F()1140 auto list = StunAttribute::CreateUnknownAttributes(); in TEST_F()[all …]
69 auto err_code = StunAttribute::CreateErrorCode(); in SendErrorResponse()95 mapped_addr = StunAttribute::CreateAddress(STUN_ATTR_MAPPED_ADDRESS); in GetStunBindResponse()97 mapped_addr = StunAttribute::CreateXorAddress(STUN_ATTR_XOR_MAPPED_ADDRESS); in GetStunBindResponse()
737 auto error_attr = StunAttribute::CreateErrorCode(); in SendBindingErrorResponse()782 auto error_attr = StunAttribute::CreateErrorCode(); in SendUnknownAttributesErrorResponse()788 StunAttribute::CreateUnknownAttributes(); in SendUnknownAttributesErrorResponse()
209 res->AddAttribute(StunAttribute::CreateUInt32(0x7777)); in TEST_F()
2314 in_msg->AddAttribute(StunAttribute::CreateUInt32(0x7777)); in TEST_F()2315 in_msg->AddAttribute(StunAttribute::CreateUInt32(0x4567)); in TEST_F()2317 in_msg->AddAttribute(StunAttribute::CreateUInt32(0xdead)); in TEST_F()2364 modified_response->AddAttribute(StunAttribute::CreateUInt32(0x7777)); in TEST_F()2393 in_msg->AddAttribute(StunAttribute::CreateUInt32(0x7777)); in TEST_F()3065 StunAttribute::CreateUInt16ListAttribute(STUN_ATTR_GOOG_MISC_INFO); in TEST_F()3150 StunAttribute::CreateUInt16ListAttribute(STUN_ATTR_GOOG_MISC_INFO); in TEST_F()
244 StunAttribute::CreateUInt16ListAttribute(STUN_ATTR_GOOG_MISC_INFO); in Prepare()680 StunAttribute::CreateUInt16ListAttribute(STUN_ATTR_GOOG_MISC_INFO); in SendStunBindingResponse()
1356 StunAttribute::CreateUInt32(STUN_ATTR_REQUESTED_TRANSPORT); in Prepare()