OpenDDS
Snapshot(2023/04/28-20:55)
|
#include <Ice.h>
Public Types | |
enum | StateChange { SRSM_None, SRSM_Set, SRSM_Unset, SRSM_Change } |
Public Member Functions | |
ServerReflexiveStateMachine () | |
StateChange | send (const ACE_INET_Addr &address, size_t indication_count_limit, const DCPS::GuidPrefix_t &guid_prefix) |
StateChange | receive (const STUN::Message &message) |
const STUN::Message & | message () const |
const ACE_INET_Addr & | unset_stun_server_address () const |
const ACE_INET_Addr & | stun_server_address () const |
bool | is_response (const STUN::Message &message) const |
DCPS::TimeDuration | latency () const |
bool | latency_available () const |
void | latency_available (bool flag) |
bool | connected () const |
Private Member Functions | |
StateChange | start (const ACE_INET_Addr &address, size_t indication_count_limit, const DCPS::GuidPrefix_t &guid_prefix) |
StateChange | stop () |
StateChange | next_send (size_t indication_count_limit, const DCPS::GuidPrefix_t &guid_prefix) |
StateChange | success_response (const STUN::Message &message) |
StateChange | error_response (const STUN::Message &message) |
Definition at line 211 of file RTPS/ICE/Ice.h.
|
inline |
Definition at line 220 of file RTPS/ICE/Ice.h.
References send().
|
inline |
Definition at line 261 of file RTPS/ICE/Ice.h.
|
private |
Definition at line 289 of file Ice.cpp.
References ACE_ERROR, ACE_TEXT(), OpenDDS::STUN::BINDING, OpenDDS::DCPS::DCPS_debug_level, OpenDDS::STUN::Message::get_error_code(), OpenDDS::STUN::Message::get_error_reason(), OpenDDS::STUN::Message::get_unknown_attributes(), OpenDDS::STUN::Message::has_error_code(), OpenDDS::STUN::Message::has_unknown_attributes(), LM_WARNING, OpenDDS::STUN::Message::method, OPENDDS_END_VERSIONED_NAMESPACE_DECL, and OpenDDS::STUN::UNKNOWN_ATTRIBUTE.
|
inline |
Definition at line 241 of file RTPS/ICE/Ice.h.
References OpenDDS::STUN::Message::transaction_id.
Referenced by OpenDDS::RTPS::Spdp::SpdpTransport::handle_input().
|
inline |
Definition at line 246 of file RTPS/ICE/Ice.h.
Referenced by OpenDDS::DCPS::RtpsUdpTransport::process_relay_sra(), and OpenDDS::RTPS::Spdp::SpdpTransport::process_relay_sra().
|
inline |
Definition at line 251 of file RTPS/ICE/Ice.h.
Referenced by OpenDDS::DCPS::RtpsUdpTransport::process_relay_sra(), and OpenDDS::RTPS::Spdp::SpdpTransport::process_relay_sra().
|
inline |
Definition at line 256 of file RTPS/ICE/Ice.h.
|
inline |
Definition at line 237 of file RTPS/ICE/Ice.h.
Referenced by OpenDDS::DCPS::RtpsUdpTransport::relay_stun_task(), and OpenDDS::RTPS::Spdp::SpdpTransport::relay_stun_task().
|
private |
Definition at line 209 of file Ice.cpp.
References OpenDDS::STUN::BINDING, OpenDDS::STUN::INDICATION, OpenDDS::STUN::make_fingerprint(), OpenDDS::STUN::make_guid_prefix(), and OpenDDS::STUN::REQUEST.
ServerReflexiveStateMachine::StateChange OpenDDS::ICE::ServerReflexiveStateMachine::receive | ( | const STUN::Message & | message | ) |
Definition at line 156 of file Ice.cpp.
References ACE_ERROR, ACE_TEXT(), OpenDDS::STUN::Message::class_, OpenDDS::STUN::ERROR_RESPONSE, OpenDDS::STUN::INDICATION, LM_WARNING, OpenDDS::DCPS::TimePoint_T< MonotonicClock >::now(), OpenDDS::STUN::REQUEST, and OpenDDS::STUN::SUCCESS_RESPONSE.
Referenced by OpenDDS::RTPS::Spdp::SpdpTransport::handle_input().
ServerReflexiveStateMachine::StateChange OpenDDS::ICE::ServerReflexiveStateMachine::send | ( | const ACE_INET_Addr & | address, |
size_t | indication_count_limit, | ||
const DCPS::GuidPrefix_t & | guid_prefix | ||
) |
Definition at line 128 of file Ice.cpp.
References OpenDDS::DCPS::TimePoint_T< MonotonicClock >::now().
Referenced by OpenDDS::DCPS::RtpsUdpTransport::relay_stun_task(), and OpenDDS::RTPS::Spdp::SpdpTransport::relay_stun_task().
|
private |
Definition at line 179 of file Ice.cpp.
References OPENDDS_ASSERT, and OpenDDS::STUN::REQUEST.
|
private |
Definition at line 197 of file Ice.cpp.
References OPENDDS_ASSERT.
|
inline |
Definition at line 239 of file RTPS/ICE/Ice.h.
Referenced by OpenDDS::DCPS::RtpsUdpTransport::disable_relay_stun_task(), OpenDDS::RTPS::Spdp::SpdpTransport::disable_relay_stun_task(), OpenDDS::DCPS::RtpsUdpTransport::process_relay_sra(), and OpenDDS::RTPS::Spdp::SpdpTransport::process_relay_sra().
|
private |
Definition at line 243 of file Ice.cpp.
References ACE_ERROR, ACE_TEXT(), OpenDDS::DCPS::DCPS_debug_level, OpenDDS::STUN::Message::get_mapped_address(), OpenDDS::STUN::INDICATION, LM_WARNING, and OpenDDS::STUN::Message::unknown_comprehension_required_attributes().
|
inline |
Definition at line 238 of file RTPS/ICE/Ice.h.
Referenced by OpenDDS::DCPS::RtpsUdpTransport::process_relay_sra(), and OpenDDS::RTPS::Spdp::SpdpTransport::process_relay_sra().
|
private |
Definition at line 280 of file RTPS/ICE/Ice.h.
|
private |
Definition at line 281 of file RTPS/ICE/Ice.h.
|
private |
Definition at line 274 of file RTPS/ICE/Ice.h.
|
private |
Definition at line 273 of file RTPS/ICE/Ice.h.
|
private |
Definition at line 278 of file RTPS/ICE/Ice.h.
|
private |
Definition at line 277 of file RTPS/ICE/Ice.h.
|
private |
Definition at line 276 of file RTPS/ICE/Ice.h.
|
private |
Definition at line 279 of file RTPS/ICE/Ice.h.
|
private |
Definition at line 275 of file RTPS/ICE/Ice.h.