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 236 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
247 // This vector contains QUIC versions which we currently support. | 247 // This vector contains QUIC versions which we currently support. |
248 // This should be ordered such that the highest supported version is the first | 248 // This should be ordered such that the highest supported version is the first |
249 // element, with subsequent elements in descending order (versions can be | 249 // element, with subsequent elements in descending order (versions can be |
250 // skipped as necessary). | 250 // skipped as necessary). |
251 const QuicVersionVector supported_versions_; | 251 const QuicVersionVector supported_versions_; |
252 | 252 |
253 // Information about the packet currently being handled. | 253 // Information about the packet currently being handled. |
254 IPEndPoint current_client_address_; | 254 IPEndPoint current_client_address_; |
255 IPEndPoint current_server_address_; | 255 IPEndPoint current_server_address_; |
256 const QuicEncryptedPacket* current_packet_; | 256 const QuicEncryptedPacket* current_packet_; |
| 257 QuicConnectionId current_connection_id_; |
257 | 258 |
258 QuicFramer framer_; | 259 QuicFramer framer_; |
259 | 260 |
260 // The last error set by SetLastError(), which is called by | 261 // The last error set by SetLastError(), which is called by |
261 // framer_visitor_->OnError(). | 262 // framer_visitor_->OnError(). |
262 QuicErrorCode last_error_; | 263 QuicErrorCode last_error_; |
263 | 264 |
264 DISALLOW_COPY_AND_ASSIGN(QuicDispatcher); | 265 DISALLOW_COPY_AND_ASSIGN(QuicDispatcher); |
265 }; | 266 }; |
266 | 267 |
267 } // namespace net | 268 } // namespace net |
268 | 269 |
269 #endif // NET_TOOLS_QUIC_QUIC_DISPATCHER_H_ | 270 #endif // NET_TOOLS_QUIC_QUIC_DISPATCHER_H_ |
OLD | NEW |