reliability.hpp 578 B

12345678910111213141516171819202122232425262728
  1. /**
  2. * Copyright (c) 2019 Paul-Louis Ageneau
  3. *
  4. * This Source Code Form is subject to the terms of the Mozilla Public
  5. * License, v. 2.0. If a copy of the MPL was not distributed with this
  6. * file, You can obtain one at https://mozilla.org/MPL/2.0/.
  7. */
  8. #ifndef RTC_RELIABILITY_H
  9. #define RTC_RELIABILITY_H
  10. #include "common.hpp"
  11. #include <chrono>
  12. namespace rtc {
  13. struct Reliability {
  14. enum class Type { Reliable = 0, Rexmit, Timed };
  15. Type type = Type::Reliable;
  16. bool unordered = false;
  17. variant<int, std::chrono::milliseconds> rexmit = 0;
  18. };
  19. } // namespace rtc
  20. #endif