| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |