/* * Copyright (c) 2016 The WebRTC project authors. All Rights Reserved. * * Use of this source code is governed by a BSD-style license * that can be found in the LICENSE file in the root of the source * tree. An additional intellectual property rights grant can be found * in the file PATENTS. All contributing project authors may * be found in the AUTHORS file in the root of the source tree. */ #include "media/base/turn_utils.h" #include "api/transport/stun.h" #include "rtc_base/byte_order.h" namespace cricket { namespace { const size_t kTurnChannelHeaderLength = …; bool IsTurnChannelData(const uint8_t* data, size_t length) { … } bool IsTurnSendIndicationPacket(const uint8_t* data, size_t length) { … } } // namespace bool UnwrapTurnPacket(const uint8_t* packet, size_t packet_size, size_t* content_position, size_t* content_size) { … } } // namespace cricket