blob: eb33e919a9b82dd7750f94136cf0fade61b6c380 [file] [log] [blame]
Jonas Olsson81125f02018-10-09 08:52:041/*
2 * Copyright 2018 The WebRTC Project Authors. All rights reserved.
3 *
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
6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree.
9 */
10
11#ifndef API_TRANSPORT_ENUMS_H_
12#define API_TRANSPORT_ENUMS_H_
13
14namespace webrtc {
15
16// See https://w3c.github.io/webrtc-pc/#rtcicetransportstate
17// Note that kFailed is currently not a terminal state, and a transport might
18// incorrectly be marked as failed while gathering candidates, see
19// bugs.webrtc.org/8833
20enum class IceTransportState {
21 kNew,
22 kChecking,
23 kConnected,
24 kCompleted,
25 kFailed,
26 kDisconnected,
27 kClosed,
28};
29
Honghai Zhangf8998cf2019-10-14 18:27:5030enum PortPrunePolicy {
31 NO_PRUNE, // Do not prune.
32 PRUNE_BASED_ON_PRIORITY, // Prune lower-priority ports on the same network.
33 KEEP_FIRST_READY // Keep the first ready port and prune the rest
34 // on the same network.
35};
36
Jonas Olsson81125f02018-10-09 08:52:0437} // namespace webrtc
38
39#endif // API_TRANSPORT_ENUMS_H_