8 #ifdef OPENDDS_SECURITY 9 #ifndef OPENDDS_DCPS_RTPS_ICE_CHECKLIST_H 10 #define OPENDDS_DCPS_RTPS_ICE_CHECKLIST_H 12 #if !defined (ACE_LACKS_PRAGMA_ONCE) 22 #if !OPENDDS_SAFETY_PROFILE 38 void add(
const FoundationType& a_foundation)
40 std::pair<FoundationsType::iterator, bool> x =
foundations_.insert(std::make_pair(a_foundation, 0));
44 bool remove(
const FoundationType& a_foundation)
46 FoundationsType::iterator pos =
foundations_.find(a_foundation);
50 if (pos->second == 0) {
58 bool contains(
const FoundationType& a_foundation)
const 85 bool a_local_is_controlling,
86 bool a_use_candidate =
false);
106 return candidate_pair_;
122 return expiration_date_;
126 request_.password = a_password;
145 #if !OPENDDS_SAFETY_PROFILE 162 void check_invariants()
const;
166 return std::find(connectivity_checks_.begin(), connectivity_checks_.end(), a_tid) != connectivity_checks_.end();
171 return guids_.find(a_guid_pair) != guids_.end();
176 void unfreeze(
const FoundationType& a_foundation);
179 ACE_UINT32 a_priority,
180 bool a_use_candidate);
190 void add_guid(
const GuidPair& a_guid_pair);
192 void remove_guid(
const GuidPair& a_guid_pair);
207 return original_remote_agent_info_;
212 remote_agent_info_.password = a_password;
213 original_remote_agent_info_.password = a_password;
249 void generate_candidate_pairs();
251 void fix_foundations();
261 return std::find(succeeded_.begin(), succeeded_.end(), a_candidate_pair) != succeeded_.end();
266 return std::find(in_progress_.begin(), in_progress_.end(), a_candidate_pair) != in_progress_.end();
269 void add_triggered_check(
const CandidatePair& a_candidate_pair);
271 void remove_from_in_progress(
const CandidatePair& a_candidate_pair);
280 return frozen_.size() + waiting_.size() + in_progress_.size();
DCPS::TimeDuration check_interval_
bool operator==(const ActiveFoundationSet &a_other) const
void password(const std::string &a_password)
AgentInfo remote_agent_info_
const CandidatePair & candidate_pair() const
const STUN::Message & request() const
bool is_succeeded(const CandidatePair &a_candidate_pair) const
std::pair< std::string, std::string > FoundationType
#define OPENDDS_ASSERT(C)
DCPS::RcHandle< Checklist > ChecklistPtr
GuidSetType guids() const
CandidatePairsType in_progress_
void add(const FoundationType &a_foundation)
CandidatePairsType waiting_
const AgentInfo & original_remote_agent_info() const
CandidatePairsType frozen_
bool const local_is_controlling_
DCPS::MonotonicTimePoint last_indication_
bool contains(const FoundationType &a_foundation) const
CandidatePairsType succeeded_
std::list< CandidatePair > CandidatePairsType
ConnectivityChecksType connectivity_checks_
CandidatePairsType::const_iterator nominated_
bool const local_is_controlling
DCPS::TimeDuration max_check_interval_
bool has_guid_pair(const GuidPair &a_guid_pair) const
static bool priority_sorted(const CandidatePair &x, const CandidatePair &y)
unsigned long long ACE_UINT64
bool has_transaction_id(const STUN::TransactionId &a_tid) const
FoundationType const foundation
#define OPENDDS_END_VERSIONED_NAMESPACE_DECL
CandidatePairsType::const_iterator nominating_
std::list< ConnectivityCheck > ConnectivityChecksType
EndpointManager *const endpoint_manager_
FoundationsType foundations_
AgentInfo local_agent_info_
ACE_UINT64 const ice_tie_breaker_
CandidatePairsType valid_list_
DCPS::MonotonicTimePoint expiration_date_
AgentInfo original_remote_agent_info_
bool is_in_progress(const CandidatePair &a_candidate_pair) const
std::map< FoundationType, size_t > FoundationsType
TransactionId transaction_id
The Internal API and Implementation of OpenDDS.
std::ostream & operator<<(std::ostream &stream, const GuidPair &guidp)
CandidatePair candidate_pair_
CandidatePairsType failed_
ACE_UINT64 const priority
void set_remote_password(const std::string &a_password)
DCPS::MonotonicTimePoint expiration_date() const
std::set< GuidPair > GuidSetType
CandidatePairsType triggered_check_queue_