| 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 63 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|    74 // Weighting of the old rtt value to new data. |    74 // Weighting of the old rtt value to new data. | 
|    75 const int RTT_RATIO = 3;  // 3 : 1 |    75 const int RTT_RATIO = 3;  // 3 : 1 | 
|    76  |    76  | 
|    77 // The delay before we begin checking if this port is useless. We set |    77 // The delay before we begin checking if this port is useless. We set | 
|    78 // it to a little higher than a total STUN timeout. |    78 // it to a little higher than a total STUN timeout. | 
|    79 const int kPortTimeoutDelay = cricket::STUN_TOTAL_TIMEOUT + 5000; |    79 const int kPortTimeoutDelay = cricket::STUN_TOTAL_TIMEOUT + 5000; | 
|    80 }  // namespace |    80 }  // namespace | 
|    81  |    81  | 
|    82 namespace cricket { |    82 namespace cricket { | 
|    83  |    83  | 
|    84 // TODO(ronghuawu): Use "host", "srflx", "prflx" and "relay". But this requires |    84 // TODO(ronghuawu): Use "local", "srflx", "prflx" and "relay". But this requires | 
|    85 // the signaling part be updated correspondingly as well. |    85 // the signaling part be updated correspondingly as well. | 
|    86 const char LOCAL_PORT_TYPE[] = "local"; |    86 const char LOCAL_PORT_TYPE[] = "local"; | 
|    87 const char STUN_PORT_TYPE[] = "stun"; |    87 const char STUN_PORT_TYPE[] = "stun"; | 
|    88 const char PRFLX_PORT_TYPE[] = "prflx"; |    88 const char PRFLX_PORT_TYPE[] = "prflx"; | 
|    89 const char RELAY_PORT_TYPE[] = "relay"; |    89 const char RELAY_PORT_TYPE[] = "relay"; | 
|    90  |    90  | 
|    91 const char UDP_PROTOCOL_NAME[] = "udp"; |    91 const char UDP_PROTOCOL_NAME[] = "udp"; | 
|    92 const char TCP_PROTOCOL_NAME[] = "tcp"; |    92 const char TCP_PROTOCOL_NAME[] = "tcp"; | 
|    93 const char SSLTCP_PROTOCOL_NAME[] = "ssltcp"; |    93 const char SSLTCP_PROTOCOL_NAME[] = "ssltcp"; | 
|    94 const char TLS_PROTOCOL_NAME[] = "tls"; |    94 const char TLS_PROTOCOL_NAME[] = "tls"; | 
| (...skipping 1517 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  1612     RTC_DCHECK(sent < 0); |  1612     RTC_DCHECK(sent < 0); | 
|  1613     error_ = port_->GetError(); |  1613     error_ = port_->GetError(); | 
|  1614     stats_.sent_discarded_packets++; |  1614     stats_.sent_discarded_packets++; | 
|  1615   } else { |  1615   } else { | 
|  1616     send_rate_tracker_.AddSamples(sent); |  1616     send_rate_tracker_.AddSamples(sent); | 
|  1617   } |  1617   } | 
|  1618   return sent; |  1618   return sent; | 
|  1619 } |  1619 } | 
|  1620  |  1620  | 
|  1621 }  // namespace cricket |  1621 }  // namespace cricket | 
| OLD | NEW |