| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2004 The WebRTC Project Authors. All rights reserved. | 2 * Copyright 2004 The WebRTC Project Authors. All rights reserved. |
| 3 * | 3 * |
| 4 * Use of this source code is governed by a BSD-style license | 4 * Use of this source code is governed by a BSD-style license |
| 5 * that can be found in the LICENSE file in the root of the source | 5 * that can be found in the LICENSE file in the root of the source |
| 6 * tree. An additional intellectual property rights grant can be found | 6 * tree. An additional intellectual property rights grant can be found |
| 7 * in the file PATENTS. All contributing project authors may | 7 * in the file PATENTS. All contributing project authors may |
| 8 * be found in the AUTHORS file in the root of the source tree. | 8 * be found in the AUTHORS file in the root of the source tree. |
| 9 */ | 9 */ |
| 10 | 10 |
| (...skipping 1458 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1469 new_local_candidate.set_component(local_candidate().component()); | 1469 new_local_candidate.set_component(local_candidate().component()); |
| 1470 new_local_candidate.set_type(PRFLX_PORT_TYPE); | 1470 new_local_candidate.set_type(PRFLX_PORT_TYPE); |
| 1471 new_local_candidate.set_protocol(local_candidate().protocol()); | 1471 new_local_candidate.set_protocol(local_candidate().protocol()); |
| 1472 new_local_candidate.set_address(addr->GetAddress()); | 1472 new_local_candidate.set_address(addr->GetAddress()); |
| 1473 new_local_candidate.set_priority(priority); | 1473 new_local_candidate.set_priority(priority); |
| 1474 new_local_candidate.set_username(local_candidate().username()); | 1474 new_local_candidate.set_username(local_candidate().username()); |
| 1475 new_local_candidate.set_password(local_candidate().password()); | 1475 new_local_candidate.set_password(local_candidate().password()); |
| 1476 new_local_candidate.set_network_name(local_candidate().network_name()); | 1476 new_local_candidate.set_network_name(local_candidate().network_name()); |
| 1477 new_local_candidate.set_network_type(local_candidate().network_type()); | 1477 new_local_candidate.set_network_type(local_candidate().network_type()); |
| 1478 new_local_candidate.set_related_address(local_candidate().address()); | 1478 new_local_candidate.set_related_address(local_candidate().address()); |
| 1479 new_local_candidate.set_generation(local_candidate().generation()); |
| 1479 new_local_candidate.set_foundation(ComputeFoundation( | 1480 new_local_candidate.set_foundation(ComputeFoundation( |
| 1480 PRFLX_PORT_TYPE, local_candidate().protocol(), | 1481 PRFLX_PORT_TYPE, local_candidate().protocol(), |
| 1481 local_candidate().relay_protocol(), local_candidate().address())); | 1482 local_candidate().relay_protocol(), local_candidate().address())); |
| 1482 new_local_candidate.set_network_id(local_candidate().network_id()); | 1483 new_local_candidate.set_network_id(local_candidate().network_id()); |
| 1483 new_local_candidate.set_network_cost(local_candidate().network_cost()); | 1484 new_local_candidate.set_network_cost(local_candidate().network_cost()); |
| 1484 | 1485 |
| 1485 // Change the local candidate of this Connection to the new prflx candidate. | 1486 // Change the local candidate of this Connection to the new prflx candidate. |
| 1486 local_candidate_index_ = port_->AddPrflxCandidate(new_local_candidate); | 1487 local_candidate_index_ = port_->AddPrflxCandidate(new_local_candidate); |
| 1487 | 1488 |
| 1488 // SignalStateChange to force a re-sort in P2PTransportChannel as this | 1489 // SignalStateChange to force a re-sort in P2PTransportChannel as this |
| (...skipping 19 matching lines...) Expand all Loading... |
| 1508 ASSERT(sent < 0); | 1509 ASSERT(sent < 0); |
| 1509 error_ = port_->GetError(); | 1510 error_ = port_->GetError(); |
| 1510 stats_.sent_discarded_packets++; | 1511 stats_.sent_discarded_packets++; |
| 1511 } else { | 1512 } else { |
| 1512 send_rate_tracker_.AddSamples(sent); | 1513 send_rate_tracker_.AddSamples(sent); |
| 1513 } | 1514 } |
| 1514 return sent; | 1515 return sent; |
| 1515 } | 1516 } |
| 1516 | 1517 |
| 1517 } // namespace cricket | 1518 } // namespace cricket |
| OLD | NEW |