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 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
44 | 44 |
45 rtc::PacketTransportInternal* rtcp_packet_transport() const { | 45 rtc::PacketTransportInternal* rtcp_packet_transport() const { |
46 return rtcp_packet_transport_; | 46 return rtcp_packet_transport_; |
47 } | 47 } |
48 void SetRtcpPacketTransport(rtc::PacketTransportInternal* rtcp); | 48 void SetRtcpPacketTransport(rtc::PacketTransportInternal* rtcp); |
49 | 49 |
50 PacketTransportInterface* GetRtpPacketTransport() const override; | 50 PacketTransportInterface* GetRtpPacketTransport() const override; |
51 PacketTransportInterface* GetRtcpPacketTransport() const override; | 51 PacketTransportInterface* GetRtcpPacketTransport() const override; |
52 | 52 |
53 // TODO(zstein): Use these RtcpParameters for configuration elsewhere. | 53 // TODO(zstein): Use these RtcpParameters for configuration elsewhere. |
54 RTCError SetRtcpParameters(const RtcpParameters& parameters) override; | 54 RTCError SetParameters(const RtpTransportParameters& parameters) override; |
55 RtcpParameters GetRtcpParameters() const override; | 55 RtpTransportParameters GetParameters() const override; |
56 | 56 |
57 // Called whenever a transport's ready-to-send state changes. The argument | 57 // Called whenever a transport's ready-to-send state changes. The argument |
58 // is true if all used transports are ready to send. This is more specific | 58 // is true if all used transports are ready to send. This is more specific |
59 // than just "writable"; it means the last send didn't return ENOTCONN. | 59 // than just "writable"; it means the last send didn't return ENOTCONN. |
60 sigslot::signal1<bool> SignalReadyToSend; | 60 sigslot::signal1<bool> SignalReadyToSend; |
61 | 61 |
62 bool IsWritable(bool rtcp) const; | 62 bool IsWritable(bool rtcp) const; |
63 | 63 |
64 bool SendPacket(bool rtcp, | 64 bool SendPacket(bool rtcp, |
65 const rtc::CopyOnWriteBuffer* packet, | 65 const rtc::CopyOnWriteBuffer* packet, |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
101 | 101 |
102 bool rtcp_mux_enabled_; | 102 bool rtcp_mux_enabled_; |
103 | 103 |
104 rtc::PacketTransportInternal* rtp_packet_transport_ = nullptr; | 104 rtc::PacketTransportInternal* rtp_packet_transport_ = nullptr; |
105 rtc::PacketTransportInternal* rtcp_packet_transport_ = nullptr; | 105 rtc::PacketTransportInternal* rtcp_packet_transport_ = nullptr; |
106 | 106 |
107 bool ready_to_send_ = false; | 107 bool ready_to_send_ = false; |
108 bool rtp_ready_to_send_ = false; | 108 bool rtp_ready_to_send_ = false; |
109 bool rtcp_ready_to_send_ = false; | 109 bool rtcp_ready_to_send_ = false; |
110 | 110 |
111 RtcpParameters rtcp_parameters_; | 111 RtpTransportParameters parameters_; |
112 | 112 |
113 cricket::BundleFilter bundle_filter_; | 113 cricket::BundleFilter bundle_filter_; |
114 }; | 114 }; |
115 | 115 |
116 } // namespace webrtc | 116 } // namespace webrtc |
117 | 117 |
118 #endif // WEBRTC_PC_RTPTRANSPORT_H_ | 118 #endif // WEBRTC_PC_RTPTRANSPORT_H_ |
OLD | NEW |