Fixed unordered flag and renamed reliability type for consistency

This commit is contained in:
Paul-Louis Ageneau
2020-08-10 10:05:30 +02:00
parent 980ee303c8
commit e2c42ff73b
4 changed files with 41 additions and 28 deletions

View File

@ -27,13 +27,9 @@
namespace rtc {
struct Reliability {
enum Type : uint8_t {
TYPE_RELIABLE = 0x00,
TYPE_PARTIAL_RELIABLE_REXMIT = 0x01,
TYPE_PARTIAL_RELIABLE_TIMED = 0x02,
};
enum class Type { Reliable = 0, Rexmit, Timed };
Type type = TYPE_RELIABLE;
Type type = Type::Reliable;
bool unordered = false;
std::variant<int, std::chrono::milliseconds> rexmit = 0;
};