Searched refs:a_conn (Results 1 – 1 of 1) sorted by relevance
151 bool ShouldSwitch(cricket::Connection* a_conn, in ShouldSwitch() argument154 if (a_conn == b_conn) in ShouldSwitch()157 if (!a_conn || !b_conn) // don't think the latter should happen in ShouldSwitch()163 int state_cmp = CompareConnectionStates(a_conn, b_conn); in ShouldSwitch()167 if (ice_role == cricket::ICEROLE_CONTROLLED && a_conn->nominated()) { in ShouldSwitch()172 int prefs_cmp = CompareConnectionCandidates(a_conn, b_conn); in ShouldSwitch()177 return b_conn->rtt() <= a_conn->rtt() + kMinImprovement; in ShouldSwitch()