OLD | NEW |
(Empty) | |
| 1 // Copyright (c) 2015 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef MEDIA_CAST_NET_RTCP_RTCP_SESSION_H_ |
| 6 #define MEDIA_CAST_NET_RTCP_RTCP_SESSION_H_ |
| 7 |
| 8 namespace media { |
| 9 namespace cast { |
| 10 |
| 11 // Base class for an RTCP session. |
| 12 class RtcpSession { |
| 13 public: |
| 14 virtual ~RtcpSession() {} |
| 15 |
| 16 // Handle incoming RTCP packet. |
| 17 // Returns false if it is not a RTCP packet or it is not directed to |
| 18 // this session, e.g. SSRC doesn't match. |
| 19 virtual bool IncomingRtcpPacket(const uint8* data, size_t length) = 0; |
| 20 }; |
| 21 |
| 22 } // namespace cast |
| 23 } // namespace media |
| 24 |
| 25 #endif // MEDIA_CAST_NET_RTCP_RTCP_SESSION_H_ |
OLD | NEW |