| 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 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 144 size_t, const rtc::PacketTime&, int> SignalReadPacket; | 144 size_t, const rtc::PacketTime&, int> SignalReadPacket; |
| 145 | 145 |
| 146 // Signalled each time a packet is sent on this channel. | 146 // Signalled each time a packet is sent on this channel. |
| 147 sigslot::signal2<TransportChannel*, const rtc::SentPacket&> SignalSentPacket; | 147 sigslot::signal2<TransportChannel*, const rtc::SentPacket&> SignalSentPacket; |
| 148 | 148 |
| 149 // This signal occurs when there is a change in the way that packets are | 149 // This signal occurs when there is a change in the way that packets are |
| 150 // being routed, i.e. to a different remote location. The candidate | 150 // being routed, i.e. to a different remote location. The candidate |
| 151 // indicates where and how we are currently sending media. | 151 // indicates where and how we are currently sending media. |
| 152 sigslot::signal2<TransportChannel*, const Candidate&> SignalRouteChange; | 152 sigslot::signal2<TransportChannel*, const Candidate&> SignalRouteChange; |
| 153 | 153 |
| 154 // This signals the network has changed on either end of the connection. |
| 155 // The first parameter is the transport channel that signaled the event. |
| 156 // The second parameter is the local network id of the connection. |
| 157 // The third parameter is the remote network id of the connection. |
| 158 sigslot::signal3<TransportChannel*, int, int> SignalNetworkChanged; |
| 159 |
| 154 // Invoked when the channel is being destroyed. | 160 // Invoked when the channel is being destroyed. |
| 155 sigslot::signal1<TransportChannel*> SignalDestroyed; | 161 sigslot::signal1<TransportChannel*> SignalDestroyed; |
| 156 | 162 |
| 157 // Debugging description of this transport channel. | 163 // Debugging description of this transport channel. |
| 158 std::string ToString() const; | 164 std::string ToString() const; |
| 159 | 165 |
| 160 protected: | 166 protected: |
| 161 // Sets the writable state, signaling if necessary. | 167 // Sets the writable state, signaling if necessary. |
| 162 void set_writable(bool writable); | 168 void set_writable(bool writable); |
| 163 | 169 |
| (...skipping 10 matching lines...) Expand all Loading... |
| 174 bool writable_; | 180 bool writable_; |
| 175 bool receiving_; | 181 bool receiving_; |
| 176 DtlsTransportState dtls_state_ = DTLS_TRANSPORT_NEW; | 182 DtlsTransportState dtls_state_ = DTLS_TRANSPORT_NEW; |
| 177 | 183 |
| 178 RTC_DISALLOW_COPY_AND_ASSIGN(TransportChannel); | 184 RTC_DISALLOW_COPY_AND_ASSIGN(TransportChannel); |
| 179 }; | 185 }; |
| 180 | 186 |
| 181 } // namespace cricket | 187 } // namespace cricket |
| 182 | 188 |
| 183 #endif // WEBRTC_P2P_BASE_TRANSPORTCHANNEL_H_ | 189 #endif // WEBRTC_P2P_BASE_TRANSPORTCHANNEL_H_ |
| OLD | NEW |