| 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_TCPPORT_H_ | 11 #ifndef WEBRTC_P2P_BASE_TCPPORT_H_ |
| 12 #define WEBRTC_P2P_BASE_TCPPORT_H_ | 12 #define WEBRTC_P2P_BASE_TCPPORT_H_ |
| 13 | 13 |
| 14 #include <list> | 14 #include <list> |
| 15 #include <memory> | 15 #include <memory> |
| 16 #include <string> | 16 #include <string> |
| 17 | 17 |
| 18 #include "webrtc/p2p/base/port.h" | 18 #include "webrtc/p2p/base/port.h" |
| 19 #include "webrtc/base/asyncpacketsocket.h" | 19 #include "webrtc/rtc_base/asyncpacketsocket.h" |
| 20 | 20 |
| 21 namespace cricket { | 21 namespace cricket { |
| 22 | 22 |
| 23 class TCPConnection; | 23 class TCPConnection; |
| 24 | 24 |
| 25 // Communicates using a local TCP port. | 25 // Communicates using a local TCP port. |
| 26 // | 26 // |
| 27 // This class is designed to allow subclasses to take advantage of the | 27 // This class is designed to allow subclasses to take advantage of the |
| 28 // connection management provided by this class. A subclass should take of all | 28 // connection management provided by this class. A subclass should take of all |
| 29 // packet sending and preparation, but when a packet is received, it should | 29 // packet sending and preparation, but when a packet is received, it should |
| (...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 181 | 181 |
| 182 // Allow test case to overwrite the default timeout period. | 182 // Allow test case to overwrite the default timeout period. |
| 183 int reconnection_timeout_; | 183 int reconnection_timeout_; |
| 184 | 184 |
| 185 friend class TCPPort; | 185 friend class TCPPort; |
| 186 }; | 186 }; |
| 187 | 187 |
| 188 } // namespace cricket | 188 } // namespace cricket |
| 189 | 189 |
| 190 #endif // WEBRTC_P2P_BASE_TCPPORT_H_ | 190 #endif // WEBRTC_P2P_BASE_TCPPORT_H_ |
| OLD | NEW |