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 27 matching lines...) Expand all Loading... |
38 class ConnectionRequest; | 38 class ConnectionRequest; |
39 | 39 |
40 extern const char LOCAL_PORT_TYPE[]; | 40 extern const char LOCAL_PORT_TYPE[]; |
41 extern const char STUN_PORT_TYPE[]; | 41 extern const char STUN_PORT_TYPE[]; |
42 extern const char PRFLX_PORT_TYPE[]; | 42 extern const char PRFLX_PORT_TYPE[]; |
43 extern const char RELAY_PORT_TYPE[]; | 43 extern const char RELAY_PORT_TYPE[]; |
44 | 44 |
45 extern const char UDP_PROTOCOL_NAME[]; | 45 extern const char UDP_PROTOCOL_NAME[]; |
46 extern const char TCP_PROTOCOL_NAME[]; | 46 extern const char TCP_PROTOCOL_NAME[]; |
47 extern const char SSLTCP_PROTOCOL_NAME[]; | 47 extern const char SSLTCP_PROTOCOL_NAME[]; |
| 48 extern const char TLS_PROTOCOL_NAME[]; |
48 | 49 |
49 // RFC 6544, TCP candidate encoding rules. | 50 // RFC 6544, TCP candidate encoding rules. |
50 extern const int DISCARD_PORT; | 51 extern const int DISCARD_PORT; |
51 extern const char TCPTYPE_ACTIVE_STR[]; | 52 extern const char TCPTYPE_ACTIVE_STR[]; |
52 extern const char TCPTYPE_PASSIVE_STR[]; | 53 extern const char TCPTYPE_PASSIVE_STR[]; |
53 extern const char TCPTYPE_SIMOPEN_STR[]; | 54 extern const char TCPTYPE_SIMOPEN_STR[]; |
54 | 55 |
55 // The minimum time we will wait before destroying a connection after creating | 56 // The minimum time we will wait before destroying a connection after creating |
56 // it. | 57 // it. |
57 static const int MIN_CONNECTION_LIFETIME = 10 * 1000; // 10 seconds. | 58 static const int MIN_CONNECTION_LIFETIME = 10 * 1000; // 10 seconds. |
(...skipping 647 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
705 const rtc::PacketOptions& options) override; | 706 const rtc::PacketOptions& options) override; |
706 int GetError() override { return error_; } | 707 int GetError() override { return error_; } |
707 | 708 |
708 private: | 709 private: |
709 int error_ = 0; | 710 int error_ = 0; |
710 }; | 711 }; |
711 | 712 |
712 } // namespace cricket | 713 } // namespace cricket |
713 | 714 |
714 #endif // WEBRTC_P2P_BASE_PORT_H_ | 715 #endif // WEBRTC_P2P_BASE_PORT_H_ |
OLD | NEW |