OpenDDS
Snapshot(2023/04/28-20:55)
|
#include <Stun.h>
Public Types | |
typedef std::vector< Attribute > | AttributesType |
typedef AttributesType::const_iterator | const_iterator |
Public Member Functions | |
Message () | |
void | generate_transaction_id () |
void | clear_transaction_id () |
void | append_attribute (const Attribute &attribute) |
const_iterator | begin () const |
const_iterator | end () const |
ACE_UINT16 | length () const |
ACE_UINT16 | length_for_message_integrity () const |
std::vector< AttributeType > | unknown_comprehension_required_attributes () const |
bool | get_mapped_address (ACE_INET_Addr &address) const |
bool | get_priority (ACE_UINT32 &priority) const |
bool | get_username (std::string &username) const |
bool | has_message_integrity () const |
bool | verify_message_integrity (const std::string &password) const |
void | compute_message_integrity (const std::string &password, unsigned char message_integrity[20]) const |
bool | has_error_code () const |
ACE_UINT16 | get_error_code () const |
std::string | get_error_reason () const |
bool | has_unknown_attributes () const |
std::vector< AttributeType > | get_unknown_attributes () const |
bool | has_fingerprint () const |
ACE_UINT32 | compute_fingerprint () const |
bool | has_ice_controlled () const |
bool | has_ice_controlling () const |
bool | has_use_candidate () const |
bool | get_guid_prefix (DCPS::GuidPrefix_t &guid_pefix) const |
Public Attributes | |
Class | class_ |
Method | method |
TransactionId | transaction_id |
ACE_Message_Block * | block |
std::string | password |
Private Attributes | |
AttributesType | attributes_ |
ACE_UINT16 | length_ |
ACE_UINT16 | length_for_message_integrity_ |
typedef std::vector<Attribute> OpenDDS::STUN::Message::AttributesType |
typedef AttributesType::const_iterator OpenDDS::STUN::Message::const_iterator |
|
inline |
Definition at line 188 of file Stun.h.
|
inline |
Definition at line 195 of file Stun.h.
References OpenDDS::STUN::Attribute::length(), OpenDDS::STUN::MESSAGE_INTEGRITY, and OpenDDS::STUN::Attribute::type.
Referenced by OpenDDS::ICE::ConnectivityCheck::ConnectivityCheck(), OpenDDS::ICE::Checklist::execute(), OpenDDS::ICE::EndpointManager::make_bad_request_error_response(), OpenDDS::ICE::EndpointManager::make_unauthorized_error_response(), OpenDDS::ICE::EndpointManager::make_unknown_attributes_error_response(), OpenDDS::STUN::operator>>(), OpenDDS::ICE::EndpointManager::request(), and OpenDDS::ICE::EndpointManager::server_reflexive_task().
|
inline |
void OpenDDS::STUN::Message::clear_transaction_id | ( | ) |
Definition at line 611 of file Stun.cpp.
References ACE_OS::memset().
Referenced by OpenDDS::ICE::EndpointManager::EndpointManager().
ACE_UINT32 OpenDDS::STUN::Message::compute_fingerprint | ( | ) | const |
Definition at line 808 of file Stun.cpp.
References ACE_Message_Block::base(), ACE::crc32(), ACE_Message_Block::duplicate(), OpenDDS::STUN::encoding(), OpenDDS::STUN::HEADER_SIZE, ACE_Message_Block::length(), OpenDDS::STUN::Attribute::length(), ACE_Message_Block::rd_ptr(), ACE_Message_Block::release(), and ACE_Message_Block::wr_ptr().
Referenced by OpenDDS::STUN::operator<<(), and OpenDDS::STUN::operator>>().
void OpenDDS::STUN::Message::compute_message_integrity | ( | const std::string & | password, |
unsigned char | message_integrity[20] | ||
) | const |
Definition at line 719 of file Stun.cpp.
References ACE_Message_Block::base(), ACE_Message_Block::duplicate(), OpenDDS::STUN::encoding(), OpenDDS::STUN::HEADER_SIZE, ACE_Message_Block::length(), OpenDDS::STUN::Attribute::length(), ACE_Message_Block::rd_ptr(), ACE_Message_Block::release(), TheSecurityRegistry, and ACE_Message_Block::wr_ptr().
Referenced by OpenDDS::STUN::operator<<().
|
inline |
void OpenDDS::STUN::Message::generate_transaction_id | ( | ) |
Definition at line 606 of file Stun.cpp.
References TheSecurityRegistry.
Referenced by OpenDDS::ICE::ConnectivityCheck::ConnectivityCheck(), OpenDDS::ICE::Checklist::execute(), and OpenDDS::ICE::EndpointManager::server_reflexive_task().
ACE_UINT16 OpenDDS::STUN::Message::get_error_code | ( | ) | const |
Definition at line 753 of file Stun.cpp.
References OpenDDS::STUN::ERROR_CODE.
Referenced by OpenDDS::ICE::Checklist::error_response(), OpenDDS::ICE::EndpointManager::error_response(), and OpenDDS::ICE::ServerReflexiveStateMachine::error_response().
std::string OpenDDS::STUN::Message::get_error_reason | ( | ) | const |
Definition at line 764 of file Stun.cpp.
References OpenDDS::STUN::ERROR_CODE.
Referenced by OpenDDS::ICE::Checklist::error_response(), OpenDDS::ICE::EndpointManager::error_response(), and OpenDDS::ICE::ServerReflexiveStateMachine::error_response().
bool OpenDDS::STUN::Message::get_guid_prefix | ( | DCPS::GuidPrefix_t & | guid_pefix | ) | const |
Definition at line 858 of file Stun.cpp.
References OpenDDS::STUN::GUID_PREFIX.
bool OpenDDS::STUN::Message::get_mapped_address | ( | ACE_INET_Addr & | address | ) | const |
Definition at line 643 of file Stun.cpp.
References OpenDDS::STUN::MAPPED_ADDRESS, and OpenDDS::STUN::XOR_MAPPED_ADDRESS.
Referenced by OpenDDS::ICE::Checklist::success_response(), OpenDDS::ICE::EndpointManager::success_response(), and OpenDDS::ICE::ServerReflexiveStateMachine::success_response().
bool OpenDDS::STUN::Message::get_priority | ( | ACE_UINT32 & | priority | ) | const |
Definition at line 662 of file Stun.cpp.
References OpenDDS::STUN::PRIORITY.
Referenced by OpenDDS::ICE::EndpointManager::request().
std::vector< AttributeType > OpenDDS::STUN::Message::get_unknown_attributes | ( | ) | const |
Definition at line 786 of file Stun.cpp.
References OpenDDS::STUN::UNKNOWN_ATTRIBUTES.
Referenced by OpenDDS::ICE::Checklist::error_response(), OpenDDS::ICE::EndpointManager::error_response(), and OpenDDS::ICE::ServerReflexiveStateMachine::error_response().
bool OpenDDS::STUN::Message::get_username | ( | std::string & | username | ) | const |
Definition at line 677 of file Stun.cpp.
References OpenDDS::STUN::USERNAME.
Referenced by OpenDDS::ICE::EndpointManager::indication(), and OpenDDS::ICE::EndpointManager::request().
bool OpenDDS::STUN::Message::has_error_code | ( | ) | const |
Definition at line 742 of file Stun.cpp.
References OpenDDS::STUN::ERROR_CODE.
Referenced by OpenDDS::ICE::Checklist::error_response(), OpenDDS::ICE::EndpointManager::error_response(), and OpenDDS::ICE::ServerReflexiveStateMachine::error_response().
bool OpenDDS::STUN::Message::has_fingerprint | ( | ) | const |
Definition at line 797 of file Stun.cpp.
References OpenDDS::STUN::FINGERPRINT.
Referenced by OpenDDS::ICE::Checklist::error_response(), OpenDDS::ICE::EndpointManager::indication(), OpenDDS::ICE::EndpointManager::request(), and OpenDDS::ICE::Checklist::success_response().
bool OpenDDS::STUN::Message::has_ice_controlled | ( | ) | const |
Definition at line 825 of file Stun.cpp.
References OpenDDS::STUN::ICE_CONTROLLED.
Referenced by OpenDDS::ICE::EndpointManager::request().
bool OpenDDS::STUN::Message::has_ice_controlling | ( | ) | const |
Definition at line 836 of file Stun.cpp.
References OpenDDS::STUN::ICE_CONTROLLING.
Referenced by OpenDDS::ICE::EndpointManager::request().
bool OpenDDS::STUN::Message::has_message_integrity | ( | ) | const |
Definition at line 692 of file Stun.cpp.
References OpenDDS::STUN::MESSAGE_INTEGRITY.
Referenced by OpenDDS::ICE::Checklist::error_response(), OpenDDS::ICE::EndpointManager::indication(), OpenDDS::ICE::EndpointManager::request(), and OpenDDS::ICE::Checklist::success_response().
bool OpenDDS::STUN::Message::has_unknown_attributes | ( | ) | const |
Definition at line 775 of file Stun.cpp.
References OpenDDS::STUN::UNKNOWN_ATTRIBUTES.
Referenced by OpenDDS::ICE::Checklist::error_response(), OpenDDS::ICE::EndpointManager::error_response(), and OpenDDS::ICE::ServerReflexiveStateMachine::error_response().
bool OpenDDS::STUN::Message::has_use_candidate | ( | ) | const |
Definition at line 847 of file Stun.cpp.
References OpenDDS::STUN::USE_CANDIDATE.
Referenced by OpenDDS::ICE::EndpointManager::request().
|
inline |
Definition at line 213 of file Stun.h.
Referenced by OpenDDS::STUN::operator<<(), OpenDDS::STUN::operator>>(), and OpenDDS::DCPS::RtpsUdpTransport::IceEndpoint::send().
|
inline |
Definition at line 217 of file Stun.h.
std::vector< AttributeType > OpenDDS::STUN::Message::unknown_comprehension_required_attributes | ( | ) | const |
Definition at line 616 of file Stun.cpp.
References OpenDDS::STUN::ERROR_CODE, OpenDDS::STUN::MAPPED_ADDRESS, OpenDDS::STUN::MESSAGE_INTEGRITY, OpenDDS::STUN::PRIORITY, OpenDDS::STUN::UNKNOWN_ATTRIBUTES, OpenDDS::STUN::USE_CANDIDATE, OpenDDS::STUN::USERNAME, and OpenDDS::STUN::XOR_MAPPED_ADDRESS.
Referenced by OpenDDS::ICE::Checklist::error_response(), OpenDDS::ICE::EndpointManager::indication(), OpenDDS::ICE::EndpointManager::request(), OpenDDS::ICE::Checklist::success_response(), OpenDDS::ICE::EndpointManager::success_response(), and OpenDDS::ICE::ServerReflexiveStateMachine::success_response().
bool OpenDDS::STUN::Message::verify_message_integrity | ( | const std::string & | password | ) | const |
Definition at line 703 of file Stun.cpp.
References memcmp(), and OpenDDS::STUN::MESSAGE_INTEGRITY.
Referenced by OpenDDS::ICE::Checklist::error_response(), OpenDDS::ICE::EndpointManager::indication(), OpenDDS::ICE::EndpointManager::request(), and OpenDDS::ICE::Checklist::success_response().
|
private |
ACE_Message_Block* OpenDDS::STUN::Message::block |
Definition at line 241 of file Stun.h.
Referenced by OpenDDS::RTPS::Spdp::SpdpTransport::handle_input(), and OpenDDS::DCPS::RtpsUdpReceiveStrategy::receive_bytes_helper().
Class OpenDDS::STUN::Message::class_ |
Definition at line 184 of file Stun.h.
Referenced by OpenDDS::ICE::ConnectivityCheck::ConnectivityCheck(), OpenDDS::ICE::Checklist::execute(), OpenDDS::ICE::EndpointManager::make_bad_request_error_response(), OpenDDS::ICE::EndpointManager::make_unauthorized_error_response(), OpenDDS::ICE::EndpointManager::make_unknown_attributes_error_response(), OpenDDS::STUN::operator<<(), OpenDDS::STUN::operator>>(), OpenDDS::ICE::EndpointManager::receive(), OpenDDS::ICE::ServerReflexiveStateMachine::receive(), OpenDDS::ICE::EndpointManager::request(), and OpenDDS::ICE::EndpointManager::server_reflexive_task().
|
private |
Method OpenDDS::STUN::Message::method |
Definition at line 185 of file Stun.h.
Referenced by OpenDDS::ICE::ConnectivityCheck::ConnectivityCheck(), OpenDDS::ICE::EndpointManager::error_response(), OpenDDS::ICE::ServerReflexiveStateMachine::error_response(), OpenDDS::ICE::Checklist::execute(), OpenDDS::ICE::EndpointManager::indication(), OpenDDS::ICE::EndpointManager::make_bad_request_error_response(), OpenDDS::ICE::EndpointManager::make_unauthorized_error_response(), OpenDDS::ICE::EndpointManager::make_unknown_attributes_error_response(), OpenDDS::STUN::operator<<(), OpenDDS::STUN::operator>>(), OpenDDS::ICE::EndpointManager::request(), OpenDDS::ICE::EndpointManager::server_reflexive_task(), and OpenDDS::ICE::EndpointManager::success_response().
std::string OpenDDS::STUN::Message::password |
Definition at line 242 of file Stun.h.
Referenced by OpenDDS::ICE::ConnectivityCheck::ConnectivityCheck(), OpenDDS::ICE::Checklist::execute(), OpenDDS::ICE::EndpointManager::make_bad_request_error_response(), OpenDDS::ICE::EndpointManager::make_unauthorized_error_response(), OpenDDS::ICE::EndpointManager::make_unknown_attributes_error_response(), OpenDDS::STUN::operator<<(), and OpenDDS::ICE::EndpointManager::request().
TransactionId OpenDDS::STUN::Message::transaction_id |
Definition at line 186 of file Stun.h.
Referenced by OpenDDS::ICE::Checklist::do_next_check(), OpenDDS::ICE::Checklist::error_response(), OpenDDS::ICE::EndpointManager::error_response(), OpenDDS::ICE::ServerReflexiveStateMachine::is_response(), OpenDDS::ICE::EndpointManager::make_bad_request_error_response(), OpenDDS::ICE::EndpointManager::make_unauthorized_error_response(), OpenDDS::ICE::EndpointManager::make_unknown_attributes_error_response(), OpenDDS::STUN::operator<<(), OpenDDS::ICE::operator==(), OpenDDS::STUN::operator>>(), OpenDDS::ICE::EndpointManager::request(), OpenDDS::ICE::Checklist::succeeded(), OpenDDS::ICE::Checklist::success_response(), and OpenDDS::ICE::EndpointManager::success_response().