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

Side by Side Diff: net/tools/quic/quic_client.h

Issue 1752823002: n/a (QUIC toy client/server changes) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@115400573
Patch Set: Revert to Patch Set 1 Created 4 years, 9 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 | « net/tools/quic/end_to_end_test.cc ('k') | net/tools/quic/quic_client.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 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 // 4 //
5 // A toy client, which connects to a specified port and sends QUIC 5 // A toy client, which connects to a specified port and sends QUIC
6 // request to that endpoint. 6 // request to that endpoint.
7 7
8 #ifndef NET_TOOLS_QUIC_QUIC_CLIENT_H_ 8 #ifndef NET_TOOLS_QUIC_QUIC_CLIENT_H_
9 #define NET_TOOLS_QUIC_QUIC_CLIENT_H_ 9 #define NET_TOOLS_QUIC_QUIC_CLIENT_H_
10 10
(...skipping 220 matching lines...) Expand 10 before | Expand all | Expand 10 after
231 void Resend() override; 231 void Resend() override;
232 232
233 private: 233 private:
234 QuicClient* client_; 234 QuicClient* client_;
235 235
236 DISALLOW_COPY_AND_ASSIGN(ClientQuicDataToResend); 236 DISALLOW_COPY_AND_ASSIGN(ClientQuicDataToResend);
237 }; 237 };
238 238
239 // Used during initialization: creates the UDP socket FD, sets socket options, 239 // Used during initialization: creates the UDP socket FD, sets socket options,
240 // and binds the socket to our address. 240 // and binds the socket to our address.
241 bool CreateUDPSocket(); 241 bool CreateUDPSocketAndBind();
242 242
243 // Actually clean up |fd|. 243 // Actually clean up |fd|.
244 void CleanUpUDPSocketImpl(int fd); 244 void CleanUpUDPSocketImpl(int fd);
245 245
246 // Read a UDP packet and hand it to the framer. 246 // Read a UDP packet and hand it to the framer.
247 bool ReadAndProcessPacket(); 247 bool ReadAndProcessPacket();
248 248
249 // Read available UDP packets up to kNumPacketsPerReadCall 249 // Read available UDP packets up to kNumPacketsPerReadCall
250 // and hand them to the connection. 250 // and hand them to the connection.
251 // TODO(rtenneti): Add support for ReadAndProcessPackets(). 251 // TODO(rtenneti): Add support for ReadAndProcessPackets().
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
317 QuicPacketReader* packet_reader_; 317 QuicPacketReader* packet_reader_;
318 318
319 std::unique_ptr<ClientQuicDataToResend> push_promise_data_to_resend_; 319 std::unique_ptr<ClientQuicDataToResend> push_promise_data_to_resend_;
320 320
321 DISALLOW_COPY_AND_ASSIGN(QuicClient); 321 DISALLOW_COPY_AND_ASSIGN(QuicClient);
322 }; 322 };
323 323
324 } // namespace net 324 } // namespace net
325 325
326 #endif // NET_TOOLS_QUIC_QUIC_CLIENT_H_ 326 #endif // NET_TOOLS_QUIC_QUIC_CLIENT_H_
OLDNEW
« no previous file with comments | « net/tools/quic/end_to_end_test.cc ('k') | net/tools/quic/quic_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698