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_QUIC_SERVER_H_ | 8 #ifndef NET_QUIC_QUIC_SERVER_H_ |
9 #define NET_QUIC_QUIC_SERVER_H_ | 9 #define NET_QUIC_QUIC_SERVER_H_ |
10 | 10 |
(...skipping 11 matching lines...) Expand all Loading... | |
22 | 22 |
23 | 23 |
24 namespace test { | 24 namespace test { |
25 class QuicServerPeer; | 25 class QuicServerPeer; |
26 } // namespace test | 26 } // namespace test |
27 | 27 |
28 class QuicConnectionHelperInterface; | 28 class QuicConnectionHelperInterface; |
29 class QuicDispatcher; | 29 class QuicDispatcher; |
30 class UDPServerSocket; | 30 class UDPServerSocket; |
31 | 31 |
32 class QuicServer { | 32 class NET_EXPORT_PRIVATE QuicServer { |
wtc
2014/07/02 01:01:41
This should be unnecessary if QuicServer is part o
| |
33 public: | 33 public: |
34 QuicServer(const QuicConfig& config, | 34 QuicServer(const QuicConfig& config, |
35 const QuicVersionVector& supported_versions); | 35 const QuicVersionVector& supported_versions); |
36 | 36 |
37 virtual ~QuicServer(); | 37 virtual ~QuicServer(); |
38 | 38 |
39 // Start listening on the specified address. Returns an error code. | 39 // Start listening on the specified address. Returns an error code. |
40 int Listen(const IPEndPoint& address); | 40 int Listen(const IPEndPoint& address); |
41 | 41 |
42 // Server deletion is imminent. Start cleaning up. | 42 // Server deletion is imminent. Start cleaning up. |
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
111 NetLog net_log_; | 111 NetLog net_log_; |
112 | 112 |
113 base::WeakPtrFactory<QuicServer> weak_factory_; | 113 base::WeakPtrFactory<QuicServer> weak_factory_; |
114 | 114 |
115 DISALLOW_COPY_AND_ASSIGN(QuicServer); | 115 DISALLOW_COPY_AND_ASSIGN(QuicServer); |
116 }; | 116 }; |
117 | 117 |
118 } // namespace net | 118 } // namespace net |
119 | 119 |
120 #endif // NET_QUIC_QUIC_SERVER_H_ | 120 #endif // NET_QUIC_QUIC_SERVER_H_ |
OLD | NEW |