Lines Matching full:connection
16 #include "p2p/base/connection.h"
24 // manages the connection used by an ICE transport.
28 // - a new connection should be selected as a result of an external event (eg.
29 // a different connection nominated by the remote peer)
40 // Called when a new connection is added to the ICE transport.
41 virtual void OnConnectionAdded(const Connection* connection) = 0;
43 // Called when the transport switches that connection in active use.
44 virtual void OnConnectionSwitched(const Connection* connection) = 0;
46 // Called when a connection is destroyed.
47 virtual void OnConnectionDestroyed(const Connection* connection) = 0;
49 // Called when a STUN ping has been sent on a connection. This does not
51 virtual void OnConnectionPinged(const Connection* connection) = 0;
53 // Called when one of the following changes for a connection.
59 virtual void OnConnectionUpdated(const Connection* connection) = 0;
61 // Compute "STUN_ATTR_USE_CANDIDATE" for a STUN ping on the given connection.
62 virtual bool GetUseCandidateAttribute(const Connection* connection,
67 // connection.
70 // Called to pick and switch to the best available connection immediately.
73 // Called to switch to the given connection immediately without checking for
74 // the best available connection.
76 const Connection* selected) = 0;
79 virtual const Connection* FindNextPingableConnection() = 0;