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

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

Issue 1577873003: Connect TurnPort and TCPPort to AsyncPacketSocket::SignalSentPacket. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Also wired up for TCPPort. 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
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 const rtc::SocketAddress& addr, 89 const rtc::SocketAddress& addr,
90 const rtc::PacketOptions& options, 90 const rtc::PacketOptions& options,
91 bool payload); 91 bool payload);
92 92
93 // Dispatches the given packet to the port or connection as appropriate. 93 // Dispatches the given packet to the port or connection as appropriate.
94 void OnReadPacket(const char* data, size_t size, 94 void OnReadPacket(const char* data, size_t size,
95 const rtc::SocketAddress& remote_addr, 95 const rtc::SocketAddress& remote_addr,
96 ProtocolType proto, 96 ProtocolType proto,
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 {}
pthatcher1 2016/01/13 19:42:36 You said it must call PortInterface::OnSentPacket,
stefan-webrtc 2016/01/14 10:14:38 Done. To be honest, I'm not entirely sure how or i
101
99 private: 102 private:
100 friend class RelayEntry; 103 friend class RelayEntry;
101 104
102 std::deque<ProtocolAddress> server_addr_; 105 std::deque<ProtocolAddress> server_addr_;
103 std::vector<ProtocolAddress> external_addr_; 106 std::vector<ProtocolAddress> external_addr_;
104 bool ready_; 107 bool ready_;
105 std::vector<RelayEntry*> entries_; 108 std::vector<RelayEntry*> entries_;
106 std::vector<OptionValue> options_; 109 std::vector<OptionValue> options_;
107 int error_; 110 int error_;
108 }; 111 };
109 112
110 } // namespace cricket 113 } // namespace cricket
111 114
112 #endif // WEBRTC_P2P_BASE_RELAYPORT_H_ 115 #endif // WEBRTC_P2P_BASE_RELAYPORT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698