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> |
11 #include <sys/epoll.h> | 11 #include <sys/epoll.h> |
12 #include <sys/socket.h> | 12 #include <sys/socket.h> |
13 | 13 |
14 #include <memory> | 14 #include <memory> |
15 | 15 |
16 #include "net/quic/core/crypto/crypto_handshake.h" | 16 #include "net/quic/core/crypto/crypto_handshake.h" |
17 #include "net/quic/core/crypto/quic_random.h" | 17 #include "net/quic/core/crypto/quic_random.h" |
18 #include "net/quic/core/quic_crypto_stream.h" | 18 #include "net/quic/core/quic_crypto_stream.h" |
19 #include "net/quic/core/quic_data_reader.h" | 19 #include "net/quic/core/quic_data_reader.h" |
20 #include "net/quic/core/quic_packets.h" | 20 #include "net/quic/core/quic_packets.h" |
| 21 #include "net/quic/platform/api/quic_clock.h" |
| 22 #include "net/quic/platform/api/quic_clock.h" |
| 23 #include "net/quic/platform/api/quic_flags.h" |
21 #include "net/quic/platform/api/quic_logging.h" | 24 #include "net/quic/platform/api/quic_logging.h" |
22 #include "net/tools/quic/platform/impl/quic_epoll_clock.h" | 25 #include "net/tools/quic/platform/impl/quic_epoll_clock.h" |
23 #include "net/tools/quic/platform/impl/quic_socket_utils.h" | 26 #include "net/tools/quic/platform/impl/quic_socket_utils.h" |
24 #include "net/tools/quic/quic_dispatcher.h" | 27 #include "net/tools/quic/quic_dispatcher.h" |
25 #include "net/tools/quic/quic_epoll_alarm_factory.h" | 28 #include "net/tools/quic/quic_epoll_alarm_factory.h" |
26 #include "net/tools/quic/quic_epoll_connection_helper.h" | 29 #include "net/tools/quic/quic_epoll_connection_helper.h" |
27 #include "net/tools/quic/quic_http_response_cache.h" | 30 #include "net/tools/quic/quic_http_response_cache.h" |
28 #include "net/tools/quic/quic_packet_reader.h" | 31 #include "net/tools/quic/quic_packet_reader.h" |
29 #include "net/tools/quic/quic_simple_crypto_server_stream_helper.h" | 32 #include "net/tools/quic/quic_simple_crypto_server_stream_helper.h" |
30 #include "net/tools/quic/quic_simple_dispatcher.h" | 33 #include "net/tools/quic/quic_simple_dispatcher.h" |
(...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
200 dispatcher_->OnCanWrite(); | 203 dispatcher_->OnCanWrite(); |
201 if (dispatcher_->HasPendingWrites()) { | 204 if (dispatcher_->HasPendingWrites()) { |
202 event->out_ready_mask |= EPOLLOUT; | 205 event->out_ready_mask |= EPOLLOUT; |
203 } | 206 } |
204 } | 207 } |
205 if (event->in_events & EPOLLERR) { | 208 if (event->in_events & EPOLLERR) { |
206 } | 209 } |
207 } | 210 } |
208 | 211 |
209 } // namespace net | 212 } // namespace net |
OLD | NEW |