• Home
  • Raw
  • Download

Lines Matching full:connection

19 #include "p2p/base/connection.h"
38 // - which connection to ping
39 // - which connection to use
40 // - which connection to prune
41 // - which connection to forget learned state on
46 // on a Connection but signal back in the interface if any mutable function
50 // Connection::Ping - returned in PingResult
51 // Connection::Prune - retuned in PruneConnections
52 // Connection::ForgetLearnedState - return in SwitchResult
57 // When a Connection gets destroyed
58 // - signals on Connection::SignalDestroyed
64 // Connection that we should (optionally) switch to.
65 absl::optional<const Connection*> connection; member
70 // A vector with connection to run ForgetLearnedState on.
71 std::vector<const Connection*> connections_to_forget_state_on;
76 PingResult(const Connection* conn, int _recheck_delay_ms) in PingResult()
77 : connection(conn ? absl::optional<const Connection*>(conn) in PingResult()
81 // Connection that we should (optionally) ping.
82 const absl::optional<const Connection*> connection; member
87 // Since the IceController determines which connection to ping and
88 // only returns one connection at a time, the recheck_delay_ms does not have
98 virtual void SetSelectedConnection(const Connection* selected_connection) = 0;
99 virtual void AddConnection(const Connection* connection) = 0;
100 virtual void OnConnectionDestroyed(const Connection* connection) = 0;
103 virtual rtc::ArrayView<const Connection*> connections() const = 0;
105 // Is there a pingable connection ?
110 // Select a connection to Ping, or nullptr if none.
114 virtual bool GetUseCandidateAttr(const Connection* conn,
119 // that simulate pinging by marking a connection pinged.
120 virtual const Connection* FindNextPingableConnection() = 0;
121 virtual void MarkConnectionPinged(const Connection* con) = 0;
123 // Check if we should switch to `connection`.
127 const Connection* connection) = 0;
133 virtual std::vector<const Connection*> PruneConnections() = 0;