OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2011 The WebRTC Project Authors. All rights reserved. | 2 * Copyright 2011 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 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
72 packet_options); | 72 packet_options); |
73 if (written) { | 73 if (written) { |
74 *written = data_len; | 74 *written = data_len; |
75 } | 75 } |
76 return rtc::SR_SUCCESS; | 76 return rtc::SR_SUCCESS; |
77 } | 77 } |
78 | 78 |
79 bool StreamInterfaceChannel::OnPacketReceived(const char* data, size_t size) { | 79 bool StreamInterfaceChannel::OnPacketReceived(const char* data, size_t size) { |
80 // We force a read event here to ensure that we don't overflow our queue. | 80 // We force a read event here to ensure that we don't overflow our queue. |
81 bool ret = packets_.WriteBack(data, size, NULL); | 81 bool ret = packets_.WriteBack(data, size, NULL); |
82 CHECK(ret) << "Failed to write packet to queue."; | 82 RTC_CHECK(ret) << "Failed to write packet to queue."; |
83 if (ret) { | 83 if (ret) { |
84 SignalEvent(this, rtc::SE_READ, 0); | 84 SignalEvent(this, rtc::SE_READ, 0); |
85 } | 85 } |
86 return ret; | 86 return ret; |
87 } | 87 } |
88 | 88 |
89 DtlsTransportChannelWrapper::DtlsTransportChannelWrapper( | 89 DtlsTransportChannelWrapper::DtlsTransportChannelWrapper( |
90 Transport* transport, | 90 Transport* transport, |
91 TransportChannelImpl* channel) | 91 TransportChannelImpl* channel) |
92 : TransportChannelImpl(channel->content_name(), channel->component()), | 92 : TransportChannelImpl(channel->content_name(), channel->component()), |
(...skipping 547 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
640 SignalRouteChange(this, candidate); | 640 SignalRouteChange(this, candidate); |
641 } | 641 } |
642 | 642 |
643 void DtlsTransportChannelWrapper::OnConnectionRemoved( | 643 void DtlsTransportChannelWrapper::OnConnectionRemoved( |
644 TransportChannelImpl* channel) { | 644 TransportChannelImpl* channel) { |
645 ASSERT(channel == channel_); | 645 ASSERT(channel == channel_); |
646 SignalConnectionRemoved(this); | 646 SignalConnectionRemoved(this); |
647 } | 647 } |
648 | 648 |
649 } // namespace cricket | 649 } // namespace cricket |
OLD | NEW |