8 #ifdef OPENDDS_SECURITY 9 #ifndef OPENDDS_DCPS_RTPS_ICE_ICE_H 10 #define OPENDDS_DCPS_RTPS_ICE_ICE_H 16 #if !defined (ACE_LACKS_PRAGMA_ONCE) 62 virtual AddressListType host_addresses()
const = 0;
72 virtual void update_agent_info(
const DCPS::RepoId& a_local_guid,
74 virtual void remove_agent_info(
const DCPS::RepoId& a_local_guid) = 0;
81 connectivity_check_ttl_(5 * 60),
82 checklist_period_(10),
83 indication_period_(15),
84 nominated_ttl_(5 * 60),
85 server_reflexive_address_period_(30),
86 server_reflexive_indication_count_(10),
87 deferred_triggered_check_ttl_(5 * 60),
88 change_password_period_(5 * 60)
102 connectivity_check_ttl_ = x;
106 return connectivity_check_ttl_;
111 checklist_period_ = x;
115 return checklist_period_;
120 indication_period_ = x;
124 return indication_period_;
133 return nominated_ttl_;
138 server_reflexive_address_period_ = x;
142 return server_reflexive_address_period_;
147 server_reflexive_indication_count_ = x;
151 return server_reflexive_indication_count_;
156 deferred_triggered_check_ttl_ = x;
160 return deferred_triggered_check_ttl_;
165 change_password_period_ = x;
169 return change_password_period_;
199 virtual void add_endpoint(
Endpoint* a_endpoint) = 0;
200 virtual void remove_endpoint(
Endpoint* a_endpoint) = 0;
202 virtual void add_local_agent_info_listener(
Endpoint* a_endpoint,
205 virtual void remove_local_agent_info_listener(
Endpoint* a_endpoint,
207 virtual void start_ice(
Endpoint* a_endpoint,
210 const AgentInfo& a_remote_agent_info) = 0;
211 virtual void stop_ice(
Endpoint* a_endpoint,
219 virtual void receive(
Endpoint* a_endpoint,
226 static Agent* instance();
239 : message_class_(STUN::
REQUEST)
246 size_t indication_count_limit,
bool operator<(const GuidPair &a_other) const
DCPS::TimeDuration indication_period_
size_t server_reflexive_indication_count_
DCPS::TimeDuration server_reflexive_address_period() const
ACE_INET_Addr stun_server_address_
void checklist_period(const DCPS::TimeDuration &x)
virtual void ice_connect(const GuidSetType &, const ACE_INET_Addr &)
std::set< GuidPair > GuidSetType
void nominated_ttl(const DCPS::TimeDuration &x)
void deferred_triggered_check_ttl(const DCPS::TimeDuration &x)
void server_reflexive_indication_count(size_t x)
ssize_t send(ACE_HANDLE handle, const void *buf, size_t len, int flags, const ACE_Time_Value *timeout=0)
DCPS::TimeDuration checklist_period() const
STUN::Class message_class_
DCPS::TimeDuration connectivity_check_ttl() const
const ACE_INET_Addr & unset_stun_server_address() const
ACE_INET_Addr unset_stun_server_address_
void indication_period(const DCPS::TimeDuration &x)
DCPS::TimeDuration checklist_period_
Candidate make_peer_reflexive_candidate(const ACE_INET_Addr &address, const ACE_INET_Addr &base, const ACE_INET_Addr &server_address, ACE_UINT32 priority)
DCPS::TimeDuration nominated_ttl() const
DCPS::TimeDuration change_password_period() const
void connectivity_check_ttl(const DCPS::TimeDuration &x)
Candidate make_host_candidate(const ACE_INET_Addr &address)
#define OPENDDS_END_VERSIONED_NAMESPACE_DECL
bool candidates_equal(const Candidate &x, const Candidate &y)
ServerReflexiveStateMachine()
#define OpenDDS_Rtps_Export
ACE_UINT32 local_priority(const ACE_INET_Addr &addr)
DCPS::TimeDuration deferred_triggered_check_ttl_
const ACE_INET_Addr & stun_server_address() const
const STUN::Message & message() const
size_t server_reflexive_indication_count() const
ACE_INET_Addr server_reflexive_address_
DCPS::TimeDuration indication_period() const
DCPS::TimeDuration nominated_ttl_
Candidate make_server_reflexive_candidate(const ACE_INET_Addr &address, const ACE_INET_Addr &base, const ACE_INET_Addr &server_address)
DCPS::TimeDuration server_reflexive_address_period_
DCPS::TimeDuration T_a() const
void change_password_period(const DCPS::TimeDuration &x)
GuidPair(const DCPS::RepoId &a_local, const DCPS::RepoId &a_remote)
virtual void ice_disconnect(const GuidSetType &, const ACE_INET_Addr &)
DCPS::TimeDuration change_password_period_
int shutdown(ACE_HANDLE handle, int how)
The Internal API and Implementation of OpenDDS.
typedef OPENDDS_VECTOR(ACE_INET_Addr) AddressListType
DCPS::TimeDuration deferred_triggered_check_ttl() const
void T_a(const DCPS::TimeDuration &x)
bool candidates_sorted(const Candidate &x, const Candidate &y)
DCPS::TimeDuration connectivity_check_ttl_
void server_reflexive_address_period(const DCPS::TimeDuration &x)
bool is_response(const STUN::Message &message) const
virtual ~AgentInfoListener()
TransactionId transaction_id