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

Side by Side Diff: net/tools/quic/quic_server.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_packet_reader.cc ('k') | net/tools/quic/quic_server_bin.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 #include "net/tools/quic/quic_server.h" 5 #include "net/tools/quic/quic_server.h"
6 6
7 #include <errno.h> 7 #include <errno.h>
8 #include <features.h> 8 #include <features.h>
9 #include <netinet/in.h> 9 #include <netinet/in.h>
10 #include <string.h> 10 #include <string.h>
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 45
46 const int kEpollFlags = EPOLLIN | EPOLLOUT | EPOLLET; 46 const int kEpollFlags = EPOLLIN | EPOLLOUT | EPOLLET;
47 const char kSourceAddressTokenSecret[] = "secret"; 47 const char kSourceAddressTokenSecret[] = "secret";
48 48
49 } // namespace 49 } // namespace
50 50
51 QuicServer::QuicServer(std::unique_ptr<ProofSource> proof_source) 51 QuicServer::QuicServer(std::unique_ptr<ProofSource> proof_source)
52 : QuicServer(std::move(proof_source), 52 : QuicServer(std::move(proof_source),
53 QuicConfig(), 53 QuicConfig(),
54 QuicCryptoServerConfig::ConfigOptions(), 54 QuicCryptoServerConfig::ConfigOptions(),
55 QuicSupportedVersions()) {} 55 AllSupportedVersions()) {}
56 56
57 QuicServer::QuicServer( 57 QuicServer::QuicServer(
58 std::unique_ptr<ProofSource> proof_source, 58 std::unique_ptr<ProofSource> proof_source,
59 const QuicConfig& config, 59 const QuicConfig& config,
60 const QuicCryptoServerConfig::ConfigOptions& crypto_config_options, 60 const QuicCryptoServerConfig::ConfigOptions& crypto_config_options,
61 const QuicVersionVector& supported_versions) 61 const QuicVersionVector& supported_versions)
62 : port_(0), 62 : port_(0),
63 fd_(-1), 63 fd_(-1),
64 packets_dropped_(0), 64 packets_dropped_(0),
65 overflow_supported_(false), 65 overflow_supported_(false),
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after
188 dispatcher_->OnCanWrite(); 188 dispatcher_->OnCanWrite();
189 if (dispatcher_->HasPendingWrites()) { 189 if (dispatcher_->HasPendingWrites()) {
190 event->out_ready_mask |= EPOLLOUT; 190 event->out_ready_mask |= EPOLLOUT;
191 } 191 }
192 } 192 }
193 if (event->in_events & EPOLLERR) { 193 if (event->in_events & EPOLLERR) {
194 } 194 }
195 } 195 }
196 196
197 } // namespace net 197 } // namespace net
OLDNEW
« no previous file with comments | « net/tools/quic/quic_packet_reader.cc ('k') | net/tools/quic/quic_server_bin.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698