Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(100)

Side by Side Diff: webrtc/p2p/base/tcpport.h

Issue 1577873003: Connect TurnPort and TCPPort to AsyncPacketSocket::SignalSentPacket. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Improve comments. Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « webrtc/p2p/base/stunport.cc ('k') | webrtc/p2p/base/tcpport.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
89 89
90 rtc::AsyncPacketSocket* GetIncoming( 90 rtc::AsyncPacketSocket* GetIncoming(
91 const rtc::SocketAddress& addr, bool remove = false); 91 const rtc::SocketAddress& addr, bool remove = false);
92 92
93 // Receives packet signal from the local TCP Socket. 93 // Receives packet signal from the local TCP Socket.
94 void OnReadPacket(rtc::AsyncPacketSocket* socket, 94 void OnReadPacket(rtc::AsyncPacketSocket* socket,
95 const char* data, size_t size, 95 const char* data, size_t size,
96 const rtc::SocketAddress& remote_addr, 96 const rtc::SocketAddress& remote_addr,
97 const rtc::PacketTime& packet_time); 97 const rtc::PacketTime& packet_time);
98 98
99 void OnSentPacket(rtc::AsyncPacketSocket* socket,
100 const rtc::SentPacket& sent_packet) override;
101
99 void OnReadyToSend(rtc::AsyncPacketSocket* socket); 102 void OnReadyToSend(rtc::AsyncPacketSocket* socket);
100 103
101 void OnAddressReady(rtc::AsyncPacketSocket* socket, 104 void OnAddressReady(rtc::AsyncPacketSocket* socket,
102 const rtc::SocketAddress& address); 105 const rtc::SocketAddress& address);
103 106
104 // TODO: Is this still needed? 107 // TODO: Is this still needed?
105 bool incoming_only_; 108 bool incoming_only_;
106 bool allow_listen_; 109 bool allow_listen_;
107 rtc::AsyncPacketSocket* socket_; 110 rtc::AsyncPacketSocket* socket_;
108 int error_; 111 int error_;
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
176 179
177 // Allow test case to overwrite the default timeout period. 180 // Allow test case to overwrite the default timeout period.
178 int reconnection_timeout_; 181 int reconnection_timeout_;
179 182
180 friend class TCPPort; 183 friend class TCPPort;
181 }; 184 };
182 185
183 } // namespace cricket 186 } // namespace cricket
184 187
185 #endif // WEBRTC_P2P_BASE_TCPPORT_H_ 188 #endif // WEBRTC_P2P_BASE_TCPPORT_H_
OLDNEW
« no previous file with comments | « webrtc/p2p/base/stunport.cc ('k') | webrtc/p2p/base/tcpport.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698