You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

33 lines
1.1 KiB

​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
  1. /*
  2. * Copyright 2016 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 RTC_BASE_NETWORK_ROUTE_H_
  11. #define RTC_BASE_NETWORK_ROUTE_H_
  12. #include <stdint.h>
  13. // TODO(honghaiz): Make a directory that describes the interfaces and structs
  14. // the media code can rely on and the network code can implement, and both can
  15. // depend on that, but not depend on each other. Then, move this file to that
  16. // directory.
  17. namespace rtc {
  18. struct NetworkRoute {
  19. bool connected = false;
  20. uint16_t local_network_id = 0;
  21. uint16_t remote_network_id = 0;
  22. // Last packet id sent on the PREVIOUS route.
  23. int last_sent_packet_id = -1;
  24. // The overhead in bytes from IP layer and above.
  25. int packet_overhead = 0;
  26. };
  27. } // namespace rtc
  28. #endif // RTC_BASE_NETWORK_ROUTE_H_