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

Side by Side Diff: net/tools/quic/quic_simple_server_bin.cc

Issue 2236973002: Landing Recent QUIC changes until 4AM, Aug 7, 2016 UTC-4 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: flip quic_sequencer_buffer_retire_block_in_time to true Created 4 years, 4 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/quic_simple_client_test.cc ('k') | net/tools/quic/quic_simple_server_session.h » ('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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 binary wrapper for QuicServer. It listens forever on --port 5 // A binary wrapper for QuicServer. It listens forever on --port
6 // (default 6121) until it's killed or ctrl-cd to death. 6 // (default 6121) until it's killed or ctrl-cd to death.
7 7
8 #include <iostream> 8 #include <iostream>
9 9
10 #include "base/at_exit.h" 10 #include "base/at_exit.h"
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
78 LOG(ERROR) << "missing --key_file"; 78 LOG(ERROR) << "missing --key_file";
79 return 1; 79 return 1;
80 } 80 }
81 81
82 net::IPAddress ip = net::IPAddress::IPv6AllZeros(); 82 net::IPAddress ip = net::IPAddress::IPv6AllZeros();
83 83
84 net::QuicConfig config; 84 net::QuicConfig config;
85 net::QuicSimpleServer server( 85 net::QuicSimpleServer server(
86 CreateProofSource(line->GetSwitchValuePath("certificate_file"), 86 CreateProofSource(line->GetSwitchValuePath("certificate_file"),
87 line->GetSwitchValuePath("key_file")), 87 line->GetSwitchValuePath("key_file")),
88 config, net::QuicSupportedVersions()); 88 config, net::AllSupportedVersions());
89 server.SetStrikeRegisterNoStartupPeriod(); 89 server.SetStrikeRegisterNoStartupPeriod();
90 90
91 int rc = server.Listen(net::IPEndPoint(ip, FLAGS_port)); 91 int rc = server.Listen(net::IPEndPoint(ip, FLAGS_port));
92 if (rc < 0) { 92 if (rc < 0) {
93 return 1; 93 return 1;
94 } 94 }
95 95
96 base::RunLoop().Run(); 96 base::RunLoop().Run();
97 97
98 return 0; 98 return 0;
99 } 99 }
OLDNEW
« no previous file with comments | « net/tools/quic/quic_simple_client_test.cc ('k') | net/tools/quic/quic_simple_server_session.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698