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 server side dispatcher which dispatches a given client's data to their | 5 // A server side dispatcher which dispatches a given client's data to their |
6 // stream. | 6 // stream. |
7 | 7 |
8 #ifndef NET_TOOLS_QUIC_QUIC_DISPATCHER_H_ | 8 #ifndef NET_TOOLS_QUIC_QUIC_DISPATCHER_H_ |
9 #define NET_TOOLS_QUIC_QUIC_DISPATCHER_H_ | 9 #define NET_TOOLS_QUIC_QUIC_DISPATCHER_H_ |
10 | 10 |
(...skipping 274 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
285 // Undecryptable packets which are buffered until a connection can be | 285 // Undecryptable packets which are buffered until a connection can be |
286 // created to handle them. | 286 // created to handle them. |
287 QuicBufferedPacketStore buffered_packets_; | 287 QuicBufferedPacketStore buffered_packets_; |
288 | 288 |
289 // This vector contains QUIC versions which we currently support. | 289 // This vector contains QUIC versions which we currently support. |
290 // This should be ordered such that the highest supported version is the first | 290 // This should be ordered such that the highest supported version is the first |
291 // element, with subsequent elements in descending order (versions can be | 291 // element, with subsequent elements in descending order (versions can be |
292 // skipped as necessary). | 292 // skipped as necessary). |
293 QuicVersionVector supported_versions_; | 293 QuicVersionVector supported_versions_; |
294 | 294 |
295 // FLAGS_quic_disable_pre_30 | 295 // The std::list of versions that may be supported by this dispatcher. |
296 bool disable_quic_pre_30_; | 296 // |supported_versions| is derived from this std::list and |disable_quic_pre_3
0_|. |
297 // The list of versions that may be supported by this dispatcher. | |
298 // |supported_versions| is derived from this list and |disable_quic_pre_30_|. | |
299 const QuicVersionVector allowed_supported_versions_; | 297 const QuicVersionVector allowed_supported_versions_; |
300 | 298 |
301 // Information about the packet currently being handled. | 299 // Information about the packet currently being handled. |
302 IPEndPoint current_client_address_; | 300 IPEndPoint current_client_address_; |
303 IPEndPoint current_server_address_; | 301 IPEndPoint current_server_address_; |
304 const QuicReceivedPacket* current_packet_; | 302 const QuicReceivedPacket* current_packet_; |
305 QuicConnectionId current_connection_id_; | 303 QuicConnectionId current_connection_id_; |
306 | 304 |
307 QuicFramer framer_; | 305 QuicFramer framer_; |
308 | 306 |
309 // The last error set by SetLastError(), which is called by | 307 // The last error set by SetLastError(), which is called by |
310 // framer_visitor_->OnError(). | 308 // framer_visitor_->OnError(). |
311 QuicErrorCode last_error_; | 309 QuicErrorCode last_error_; |
312 | 310 |
313 DISALLOW_COPY_AND_ASSIGN(QuicDispatcher); | 311 DISALLOW_COPY_AND_ASSIGN(QuicDispatcher); |
314 }; | 312 }; |
315 | 313 |
316 } // namespace net | 314 } // namespace net |
317 | 315 |
318 #endif // NET_TOOLS_QUIC_QUIC_DISPATCHER_H_ | 316 #endif // NET_TOOLS_QUIC_QUIC_DISPATCHER_H_ |
OLD | NEW |