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 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
49 // once /talk/ and /webrtc/ are combined, and also switch to ENUM_NAME naming | 49 // once /talk/ and /webrtc/ are combined, and also switch to ENUM_NAME naming |
50 // style. | 50 // style. |
51 enum IceConnectionState { | 51 enum IceConnectionState { |
52 kIceConnectionConnecting = 0, | 52 kIceConnectionConnecting = 0, |
53 kIceConnectionFailed, | 53 kIceConnectionFailed, |
54 kIceConnectionConnected, // Writable, but still checking one or more | 54 kIceConnectionConnected, // Writable, but still checking one or more |
55 // connections | 55 // connections |
56 kIceConnectionCompleted, | 56 kIceConnectionCompleted, |
57 }; | 57 }; |
58 | 58 |
| 59 enum DtlsTransportState { |
| 60 // Haven't started negotiating. |
| 61 DTLS_TRANSPORT_NEW = 0, |
| 62 // Have started negotiating. |
| 63 DTLS_TRANSPORT_CONNECTING, |
| 64 // Negotiated, and has a secure connection. |
| 65 DTLS_TRANSPORT_CONNECTED, |
| 66 // Transport is closed. |
| 67 DTLS_TRANSPORT_CLOSED, |
| 68 // Failed due to some error in the handshake process. |
| 69 DTLS_TRANSPORT_FAILED, |
| 70 }; |
| 71 |
59 // TODO(deadbeef): Unify with PeerConnectionInterface::IceConnectionState | 72 // TODO(deadbeef): Unify with PeerConnectionInterface::IceConnectionState |
60 // once /talk/ and /webrtc/ are combined, and also switch to ENUM_NAME naming | 73 // once /talk/ and /webrtc/ are combined, and also switch to ENUM_NAME naming |
61 // style. | 74 // style. |
62 enum IceGatheringState { | 75 enum IceGatheringState { |
63 kIceGatheringNew = 0, | 76 kIceGatheringNew = 0, |
64 kIceGatheringGathering, | 77 kIceGatheringGathering, |
65 kIceGatheringComplete, | 78 kIceGatheringComplete, |
66 }; | 79 }; |
67 | 80 |
68 // Stats that we can return about the connections for a transport channel. | 81 // Stats that we can return about the connections for a transport channel. |
(...skipping 231 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
300 | 313 |
301 ChannelMap channels_; | 314 ChannelMap channels_; |
302 | 315 |
303 RTC_DISALLOW_COPY_AND_ASSIGN(Transport); | 316 RTC_DISALLOW_COPY_AND_ASSIGN(Transport); |
304 }; | 317 }; |
305 | 318 |
306 | 319 |
307 } // namespace cricket | 320 } // namespace cricket |
308 | 321 |
309 #endif // WEBRTC_P2P_BASE_TRANSPORT_H_ | 322 #endif // WEBRTC_P2P_BASE_TRANSPORT_H_ |
OLD | NEW |