OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 #ifndef NET_QUIC_TOOLS_QUIC_SIMPLE_SERVER_H_ | 8 #ifndef NET_QUIC_TOOLS_QUIC_SIMPLE_SERVER_H_ |
9 #define NET_QUIC_TOOLS_QUIC_SIMPLE_SERVER_H_ | 9 #define NET_QUIC_TOOLS_QUIC_SIMPLE_SERVER_H_ |
10 | 10 |
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
108 | 108 |
109 // The target buffer of the current read. | 109 // The target buffer of the current read. |
110 scoped_refptr<IOBufferWithSize> read_buffer_; | 110 scoped_refptr<IOBufferWithSize> read_buffer_; |
111 | 111 |
112 // The source address of the current read. | 112 // The source address of the current read. |
113 IPEndPoint client_address_; | 113 IPEndPoint client_address_; |
114 | 114 |
115 // The log to use for the socket. | 115 // The log to use for the socket. |
116 NetLog net_log_; | 116 NetLog net_log_; |
117 | 117 |
| 118 bool check_packet_buffer_; |
| 119 |
118 base::WeakPtrFactory<QuicSimpleServer> weak_factory_; | 120 base::WeakPtrFactory<QuicSimpleServer> weak_factory_; |
119 | 121 |
120 DISALLOW_COPY_AND_ASSIGN(QuicSimpleServer); | 122 DISALLOW_COPY_AND_ASSIGN(QuicSimpleServer); |
121 }; | 123 }; |
122 | 124 |
123 } // namespace net | 125 } // namespace net |
124 | 126 |
125 #endif // NET_QUIC_TOOLS_QUIC_SIMPLE_SERVER_H_ | 127 #endif // NET_QUIC_TOOLS_QUIC_SIMPLE_SERVER_H_ |
OLD | NEW |