OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2004 The WebRTC Project Authors. All rights reserved. | 2 * Copyright 2004 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 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
123 const uint8* context, | 123 const uint8* context, |
124 size_t context_len, | 124 size_t context_len, |
125 bool use_context, | 125 bool use_context, |
126 uint8* result, | 126 uint8* result, |
127 size_t result_len) = 0; | 127 size_t result_len) = 0; |
128 | 128 |
129 // Signalled each time a packet is received on this channel. | 129 // Signalled each time a packet is received on this channel. |
130 sigslot::signal5<TransportChannel*, const char*, | 130 sigslot::signal5<TransportChannel*, const char*, |
131 size_t, const rtc::PacketTime&, int> SignalReadPacket; | 131 size_t, const rtc::PacketTime&, int> SignalReadPacket; |
132 | 132 |
| 133 // Signalled each time a packet is sent on this channel. |
| 134 sigslot::signal2<TransportChannel*, const rtc::SentPacket&> SignalSentPacket; |
| 135 |
133 // This signal occurs when there is a change in the way that packets are | 136 // This signal occurs when there is a change in the way that packets are |
134 // being routed, i.e. to a different remote location. The candidate | 137 // being routed, i.e. to a different remote location. The candidate |
135 // indicates where and how we are currently sending media. | 138 // indicates where and how we are currently sending media. |
136 sigslot::signal2<TransportChannel*, const Candidate&> SignalRouteChange; | 139 sigslot::signal2<TransportChannel*, const Candidate&> SignalRouteChange; |
137 | 140 |
138 // Invoked when the channel is being destroyed. | 141 // Invoked when the channel is being destroyed. |
139 sigslot::signal1<TransportChannel*> SignalDestroyed; | 142 sigslot::signal1<TransportChannel*> SignalDestroyed; |
140 | 143 |
141 // Debugging description of this transport channel. | 144 // Debugging description of this transport channel. |
142 std::string ToString() const; | 145 std::string ToString() const; |
(...skipping 14 matching lines...) Expand all Loading... |
157 int component_; | 160 int component_; |
158 bool writable_; | 161 bool writable_; |
159 bool receiving_; | 162 bool receiving_; |
160 | 163 |
161 RTC_DISALLOW_COPY_AND_ASSIGN(TransportChannel); | 164 RTC_DISALLOW_COPY_AND_ASSIGN(TransportChannel); |
162 }; | 165 }; |
163 | 166 |
164 } // namespace cricket | 167 } // namespace cricket |
165 | 168 |
166 #endif // WEBRTC_P2P_BASE_TRANSPORTCHANNEL_H_ | 169 #endif // WEBRTC_P2P_BASE_TRANSPORTCHANNEL_H_ |
OLD | NEW |