| 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 |
| (...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 123 QuicCryptoServerConfig crypto_config_; | 123 QuicCryptoServerConfig crypto_config_; |
| 124 // crypto_config_options_ contains crypto parameters for the handshake. | 124 // crypto_config_options_ contains crypto parameters for the handshake. |
| 125 QuicCryptoServerConfig::ConfigOptions crypto_config_options_; | 125 QuicCryptoServerConfig::ConfigOptions crypto_config_options_; |
| 126 | 126 |
| 127 // This vector contains QUIC versions which we currently support. | 127 // This vector contains QUIC versions which we currently support. |
| 128 // This should be ordered such that the highest supported version is the first | 128 // This should be ordered such that the highest supported version is the first |
| 129 // element, with subsequent elements in descending order (versions can be | 129 // element, with subsequent elements in descending order (versions can be |
| 130 // skipped as necessary). | 130 // skipped as necessary). |
| 131 QuicVersionVector supported_versions_; | 131 QuicVersionVector supported_versions_; |
| 132 | 132 |
| 133 // Point to a QuicPacketReader object on the heap. The reader allocates more |
| 134 // space than allowed on the stack. |
| 133 scoped_ptr<QuicPacketReader> packet_reader_; | 135 scoped_ptr<QuicPacketReader> packet_reader_; |
| 134 | 136 |
| 135 DISALLOW_COPY_AND_ASSIGN(QuicServer); | 137 DISALLOW_COPY_AND_ASSIGN(QuicServer); |
| 136 }; | 138 }; |
| 137 | 139 |
| 138 } // namespace net | 140 } // namespace net |
| 139 | 141 |
| 140 #endif // NET_TOOLS_QUIC_QUIC_SERVER_H_ | 142 #endif // NET_TOOLS_QUIC_QUIC_SERVER_H_ |
| OLD | NEW |