OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2017 The WebRTC project authors. All Rights Reserved. | 2 * Copyright 2017 The WebRTC project authors. All Rights Reserved. |
3 * | 3 * |
4 * Use of this source code is governed by a BSD-style license | 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 | 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 | 6 * tree. An additional intellectual property rights grant can be found |
7 * in the file PATENTS. All contributing project authors may | 7 * in the file PATENTS. All contributing project authors may |
8 * be found in the AUTHORS file in the root of the source tree. | 8 * be found in the AUTHORS file in the root of the source tree. |
9 */ | 9 */ |
10 | 10 |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
47 sigslot::signal1<bool> SignalReadyToSend; | 47 sigslot::signal1<bool> SignalReadyToSend; |
48 | 48 |
49 // TODO(zstein): Consider having two signals - RtpPacketReceived and | 49 // TODO(zstein): Consider having two signals - RtpPacketReceived and |
50 // RtcpPacketReceived. | 50 // RtcpPacketReceived. |
51 // The first argument is true for RTCP packets and false for RTP packets. | 51 // The first argument is true for RTCP packets and false for RTP packets. |
52 sigslot::signal3<bool, rtc::CopyOnWriteBuffer*, const rtc::PacketTime&> | 52 sigslot::signal3<bool, rtc::CopyOnWriteBuffer*, const rtc::PacketTime&> |
53 SignalPacketReceived; | 53 SignalPacketReceived; |
54 | 54 |
55 virtual bool IsWritable(bool rtcp) const = 0; | 55 virtual bool IsWritable(bool rtcp) const = 0; |
56 | 56 |
| 57 virtual bool SendRtpPacket(rtc::CopyOnWriteBuffer* packet, |
| 58 const rtc::PacketOptions& options) = 0; |
| 59 |
| 60 virtual bool SendRtcpPacket(rtc::CopyOnWriteBuffer* packet, |
| 61 const rtc::PacketOptions& options) = 0; |
| 62 |
57 virtual bool SendPacket(bool rtcp, | 63 virtual bool SendPacket(bool rtcp, |
58 rtc::CopyOnWriteBuffer* packet, | 64 rtc::CopyOnWriteBuffer* packet, |
59 const rtc::PacketOptions& options, | 65 const rtc::PacketOptions& options, |
60 int flags) = 0; | 66 int flags) = 0; |
61 | 67 |
62 virtual bool HandlesPayloadType(int payload_type) const = 0; | 68 virtual bool HandlesPayloadType(int payload_type) const = 0; |
63 | 69 |
64 virtual void AddHandledPayloadType(int payload_type) = 0; | 70 virtual void AddHandledPayloadType(int payload_type) = 0; |
65 }; | 71 }; |
66 | 72 |
67 } // namespace webrtc | 73 } // namespace webrtc |
68 | 74 |
69 #endif // WEBRTC_PC_RTPTRANSPORTINTERNAL_H_ | 75 #endif // WEBRTC_PC_RTPTRANSPORTINTERNAL_H_ |
OLD | NEW |