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.

32 lines
1.0 KiB

​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
  1. /*
  2. * Copyright 2017 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_NET_HELPER_H_
  11. #define RTC_BASE_NET_HELPER_H_
  12. #include <string>
  13. // This header contains helper functions and constants used by different types
  14. // of transports.
  15. namespace cricket {
  16. extern const char UDP_PROTOCOL_NAME[];
  17. extern const char TCP_PROTOCOL_NAME[];
  18. extern const char SSLTCP_PROTOCOL_NAME[];
  19. extern const char TLS_PROTOCOL_NAME[];
  20. // Get the network layer overhead per packet based on the IP address family.
  21. int GetIpOverhead(int addr_family);
  22. // Get the transport layer overhead per packet based on the protocol.
  23. int GetProtocolOverhead(const std::string& protocol);
  24. } // namespace cricket
  25. #endif // RTC_BASE_NET_HELPER_H_