turn_utils.h 980 B

1234567891011121314151617181920212223242526272829303132
  1. /*
  2. * Copyright (c) 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 MEDIA_BASE_TURN_UTILS_H_
  11. #define MEDIA_BASE_TURN_UTILS_H_
  12. #include <cstddef>
  13. #include <cstdint>
  14. #include "rtc_base/system/rtc_export.h"
  15. namespace cricket {
  16. struct PacketOptions;
  17. // Finds data location within a TURN Channel Message or TURN Send Indication
  18. // message.
  19. bool RTC_EXPORT UnwrapTurnPacket(const uint8_t* packet,
  20. size_t packet_size,
  21. size_t* content_position,
  22. size_t* content_size);
  23. } // namespace cricket
  24. #endif // MEDIA_BASE_TURN_UTILS_H_