| 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 // A toy server, which listens on a specified address for QUIC traffic and | 5 // A toy server, which listens on a specified address for QUIC traffic and |
| 6 // handles incoming responses. | 6 // handles incoming responses. |
| 7 // | 7 // |
| 8 // Note that this server is intended to verify correctness of the client and is | 8 // Note that this server is intended to verify correctness of the client and is |
| 9 // in no way expected to be performant. | 9 // in no way expected to be performant. |
| 10 | 10 |
| 11 #ifndef NET_TOOLS_QUIC_QUIC_SERVER_H_ | 11 #ifndef NET_TOOLS_QUIC_QUIC_SERVER_H_ |
| 12 #define NET_TOOLS_QUIC_QUIC_SERVER_H_ | 12 #define NET_TOOLS_QUIC_QUIC_SERVER_H_ |
| 13 | 13 |
| 14 #include <stddef.h> | 14 #include <stddef.h> |
| 15 | 15 |
| 16 #include <memory> |
| 17 |
| 16 #include "base/macros.h" | 18 #include "base/macros.h" |
| 17 #include "net/base/ip_endpoint.h" | 19 #include "net/base/ip_endpoint.h" |
| 18 #include "net/quic/crypto/quic_crypto_server_config.h" | 20 #include "net/quic/crypto/quic_crypto_server_config.h" |
| 19 #include "net/quic/quic_chromium_alarm_factory.h" | 21 #include "net/quic/quic_chromium_alarm_factory.h" |
| 20 #include "net/quic/quic_chromium_connection_helper.h" | 22 #include "net/quic/quic_chromium_connection_helper.h" |
| 21 #include "net/quic/quic_config.h" | 23 #include "net/quic/quic_config.h" |
| 22 #include "net/quic/quic_framer.h" | 24 #include "net/quic/quic_framer.h" |
| 23 #include "net/tools/epoll_server/epoll_server.h" | 25 #include "net/tools/epoll_server/epoll_server.h" |
| 24 #include "net/tools/quic/quic_default_packet_writer.h" | 26 #include "net/tools/quic/quic_default_packet_writer.h" |
| 25 | 27 |
| (...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 130 // Point to a QuicPacketReader object on the heap. The reader allocates more | 132 // Point to a QuicPacketReader object on the heap. The reader allocates more |
| 131 // space than allowed on the stack. | 133 // space than allowed on the stack. |
| 132 std::unique_ptr<QuicPacketReader> packet_reader_; | 134 std::unique_ptr<QuicPacketReader> packet_reader_; |
| 133 | 135 |
| 134 DISALLOW_COPY_AND_ASSIGN(QuicServer); | 136 DISALLOW_COPY_AND_ASSIGN(QuicServer); |
| 135 }; | 137 }; |
| 136 | 138 |
| 137 } // namespace net | 139 } // namespace net |
| 138 | 140 |
| 139 #endif // NET_TOOLS_QUIC_QUIC_SERVER_H_ | 141 #endif // NET_TOOLS_QUIC_QUIC_SERVER_H_ |
| OLD | NEW |