enums.h 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. /*
  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. #ifndef API_TRANSPORT_ENUMS_H_
  11. #define API_TRANSPORT_ENUMS_H_
  12. namespace webrtc {
  13. // See https://w3c.github.io/webrtc-pc/#rtcicetransportstate
  14. // Note that kFailed is currently not a terminal state, and a transport might
  15. // incorrectly be marked as failed while gathering candidates, see
  16. // bugs.webrtc.org/8833
  17. enum class IceTransportState {
  18. kNew,
  19. kChecking,
  20. kConnected,
  21. kCompleted,
  22. kFailed,
  23. kDisconnected,
  24. kClosed,
  25. };
  26. enum PortPrunePolicy {
  27. NO_PRUNE, // Do not prune.
  28. PRUNE_BASED_ON_PRIORITY, // Prune lower-priority ports on the same network.
  29. KEEP_FIRST_READY // Keep the first ready port and prune the rest
  30. // on the same network.
  31. };
  32. } // namespace webrtc
  33. #endif // API_TRANSPORT_ENUMS_H_