Danil Chapovalov | 398a7c6 | 2017-10-24 17:07:05 +0200 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (c) 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 | |
| 11 | #ifndef MODULES_RTP_RTCP_SOURCE_RTCP_TRANSCEIVER_IMPL_H_ |
| 12 | #define MODULES_RTP_RTCP_SOURCE_RTCP_TRANSCEIVER_IMPL_H_ |
| 13 | |
| 14 | #include <memory> |
| 15 | #include <string> |
| 16 | |
| 17 | #include "api/array_view.h" |
| 18 | #include "modules/rtp_rtcp/source/rtcp_transceiver_config.h" |
| 19 | #include "rtc_base/constructormagic.h" |
| 20 | |
| 21 | namespace webrtc { |
| 22 | // |
| 23 | // Manage incoming and outgoing rtcp messages for multiple BUNDLED streams. |
| 24 | // |
| 25 | // This class is not thread-safe. |
| 26 | class RtcpTransceiverImpl { |
| 27 | public: |
| 28 | explicit RtcpTransceiverImpl(const RtcpTransceiverConfig& config); |
| 29 | ~RtcpTransceiverImpl(); |
| 30 | |
| 31 | // Sends RTCP packets starting with a sender or receiver report. |
| 32 | void SendCompoundPacket(); |
| 33 | |
| 34 | private: |
| 35 | const RtcpTransceiverConfig config_; |
| 36 | |
| 37 | RTC_DISALLOW_IMPLICIT_CONSTRUCTORS(RtcpTransceiverImpl); |
| 38 | }; |
| 39 | |
| 40 | } // namespace webrtc |
| 41 | |
| 42 | #endif // MODULES_RTP_RTCP_SOURCE_RTCP_TRANSCEIVER_IMPL_H_ |