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 client, which connects to a specified port and sends QUIC | 5 // A toy client, which connects to a specified port and sends QUIC |
6 // request to that endpoint. | 6 // request to that endpoint. |
7 | 7 |
8 #ifndef NET_TOOLS_QUIC_QUIC_CLIENT_H_ | 8 #ifndef NET_TOOLS_QUIC_QUIC_CLIENT_H_ |
9 #define NET_TOOLS_QUIC_QUIC_CLIENT_H_ | 9 #define NET_TOOLS_QUIC_QUIC_CLIENT_H_ |
10 | 10 |
(...skipping 263 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
274 bool initialized_; | 274 bool initialized_; |
275 | 275 |
276 // If overflow_supported_ is true, this will be the number of packets dropped | 276 // If overflow_supported_ is true, this will be the number of packets dropped |
277 // during the lifetime of the server. | 277 // during the lifetime of the server. |
278 QuicPacketCount packets_dropped_; | 278 QuicPacketCount packets_dropped_; |
279 | 279 |
280 // True if the kernel supports SO_RXQ_OVFL, the number of packets dropped | 280 // True if the kernel supports SO_RXQ_OVFL, the number of packets dropped |
281 // because the socket would otherwise overflow. | 281 // because the socket would otherwise overflow. |
282 bool overflow_supported_; | 282 bool overflow_supported_; |
283 | 283 |
284 // If true, use recvmmsg for reading. | |
285 bool use_recvmmsg_; | |
286 | |
287 // If true, store the latest response code, headers, and body. | 284 // If true, store the latest response code, headers, and body. |
288 bool store_response_; | 285 bool store_response_; |
289 // HTTP response code from most recent response. | 286 // HTTP response code from most recent response. |
290 size_t latest_response_code_; | 287 size_t latest_response_code_; |
291 // HTTP/2 headers from most recent response. | 288 // HTTP/2 headers from most recent response. |
292 std::string latest_response_headers_; | 289 std::string latest_response_headers_; |
293 // Body of most recent response. | 290 // Body of most recent response. |
294 std::string latest_response_body_; | 291 std::string latest_response_body_; |
295 // HTTP/2 trailers from most recent response. | 292 // HTTP/2 trailers from most recent response. |
296 std::string latest_response_trailers_; | 293 std::string latest_response_trailers_; |
(...skipping 13 matching lines...) Expand all Loading... |
310 scoped_ptr<QuicPacketReader> packet_reader_; | 307 scoped_ptr<QuicPacketReader> packet_reader_; |
311 | 308 |
312 std::unique_ptr<ClientQuicDataToResend> push_promise_data_to_resend_; | 309 std::unique_ptr<ClientQuicDataToResend> push_promise_data_to_resend_; |
313 | 310 |
314 DISALLOW_COPY_AND_ASSIGN(QuicClient); | 311 DISALLOW_COPY_AND_ASSIGN(QuicClient); |
315 }; | 312 }; |
316 | 313 |
317 } // namespace net | 314 } // namespace net |
318 | 315 |
319 #endif // NET_TOOLS_QUIC_QUIC_CLIENT_H_ | 316 #endif // NET_TOOLS_QUIC_QUIC_CLIENT_H_ |
OLD | NEW |