Lines Matching full:connection
21 #include "p2p/base/connection.h"
68 const Connection* connection, in GetUseCandidateAttribute() argument
72 return wrapped_->GetUseCandidateAttr(connection, mode, remote_ice_mode); in GetUseCandidateAttribute()
76 const Connection* connection) { in OnConnectionAdded() argument
78 wrapped_->AddConnection(connection); in OnConnectionAdded()
82 const Connection* connection) { in OnConnectionPinged() argument
84 wrapped_->MarkConnectionPinged(connection); in OnConnectionPinged()
88 const Connection* connection) { in OnConnectionUpdated() argument
89 RTC_LOG(LS_VERBOSE) << "Connection report for " << connection->ToString(); in OnConnectionUpdated()
90 // Do nothing. Native ICE controllers have direct access to Connection, so no in OnConnectionUpdated()
91 // need to update connection state separately. in OnConnectionUpdated()
95 const Connection* connection) { in OnConnectionSwitched() argument
97 selected_connection_ = connection; in OnConnectionSwitched()
98 wrapped_->SetSelectedConnection(connection); in OnConnectionSwitched()
102 const Connection* connection) { in OnConnectionDestroyed() argument
104 wrapped_->OnConnectionDestroyed(connection); in OnConnectionDestroyed()
134 if (result.connection.has_value()) { in HandlePingResult()
135 agent_.SendPingRequest(result.connection.value()); in HandlePingResult()
164 // Make sure the connection states are up-to-date since this affects how they in SortAndSwitchToBestConnection()
179 const Connection* selected) { in OnImmediateSwitchRequest()
184 return result.connection.has_value(); in OnImmediateSwitchRequest()
191 if (result.connection.has_value()) { in HandleSwitchResult()
192 RTC_LOG(LS_INFO) << "Switching selected connection due to: " in HandleSwitchResult()
194 agent_.SwitchSelectedConnection(result.connection.value(), in HandleSwitchResult()
199 // If we do not switch to the connection because it missed the receiving in HandleSwitchResult()
200 // threshold, the new connection is in a better receiving state than the in HandleSwitchResult()
201 // currently selected connection. So we need to re-check whether it needs in HandleSwitchResult()
224 // * The first connection was created. in UpdateStateOnConnectionsResorted()
226 // * A TCP connection became connected. in UpdateStateOnConnectionsResorted()
233 // The controlled side can prune only if the selected connection has been in PruneConnections()
234 // nominated because otherwise it may prune the connection that will be in PruneConnections()
236 // TODO(honghaiz): This is not enough to prevent a connection from being in PruneConnections()
238 // will nominate every connection until it becomes writable. in PruneConnections()
241 std::vector<const Connection*> connections_to_prune = in PruneConnections()
248 const Connection* WrappingActiveIceController::FindNextPingableConnection() { in FindNextPingableConnection()