| 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 |
| 11 #ifndef WEBRTC_P2P_BASE_STUNPORT_H_ | 11 #ifndef WEBRTC_P2P_BASE_STUNPORT_H_ |
| 12 #define WEBRTC_P2P_BASE_STUNPORT_H_ | 12 #define WEBRTC_P2P_BASE_STUNPORT_H_ |
| 13 | 13 |
| 14 #include <memory> | 14 #include <memory> |
| 15 #include <string> | 15 #include <string> |
| 16 | 16 |
| 17 #include "webrtc/p2p/base/port.h" | 17 #include "webrtc/p2p/base/port.h" |
| 18 #include "webrtc/p2p/base/stunrequest.h" | 18 #include "webrtc/p2p/base/stunrequest.h" |
| 19 #include "webrtc/rtc_base/asyncpacketsocket.h" | 19 #include "webrtc/base/asyncpacketsocket.h" |
| 20 | 20 |
| 21 // TODO(mallinath) - Rename stunport.cc|h to udpport.cc|h. | 21 // TODO(mallinath) - Rename stunport.cc|h to udpport.cc|h. |
| 22 namespace rtc { | 22 namespace rtc { |
| 23 class AsyncResolver; | 23 class AsyncResolver; |
| 24 class SignalThread; | 24 class SignalThread; |
| 25 } | 25 } |
| 26 | 26 |
| 27 namespace cricket { | 27 namespace cricket { |
| 28 | 28 |
| 29 // Lifetime chosen for STUN ports on low-cost networks. | 29 // Lifetime chosen for STUN ports on low-cost networks. |
| (...skipping 276 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 306 false) { | 306 false) { |
| 307 // UDPPort will set these to local udp, updating these to STUN. | 307 // UDPPort will set these to local udp, updating these to STUN. |
| 308 set_type(STUN_PORT_TYPE); | 308 set_type(STUN_PORT_TYPE); |
| 309 set_server_addresses(servers); | 309 set_server_addresses(servers); |
| 310 } | 310 } |
| 311 }; | 311 }; |
| 312 | 312 |
| 313 } // namespace cricket | 313 } // namespace cricket |
| 314 | 314 |
| 315 #endif // WEBRTC_P2P_BASE_STUNPORT_H_ | 315 #endif // WEBRTC_P2P_BASE_STUNPORT_H_ |
| OLD | NEW |