| 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 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 // Note that this server is intended to verify correctness of the client and is | 8 // Note that this server is intended to verify correctness of the client and is | 
| 9 // in no way expected to be performant. | 9 // in no way expected to be performant. | 
| 10 | 10 | 
| (...skipping 12 matching lines...) Expand all  Loading... | 
| 23 #include "net/tools/epoll_server/epoll_server.h" | 23 #include "net/tools/epoll_server/epoll_server.h" | 
| 24 #include "net/tools/quic/quic_default_packet_writer.h" | 24 #include "net/tools/quic/quic_default_packet_writer.h" | 
| 25 | 25 | 
| 26 namespace net { | 26 namespace net { | 
| 27 namespace tools { | 27 namespace tools { | 
| 28 | 28 | 
| 29 namespace test { | 29 namespace test { | 
| 30 class QuicServerPeer; | 30 class QuicServerPeer; | 
| 31 }  // namespace test | 31 }  // namespace test | 
| 32 | 32 | 
| 33 class ProcessPacketInterface; |  | 
| 34 class QuicDispatcher; | 33 class QuicDispatcher; | 
| 35 class QuicPacketReader; | 34 class QuicPacketReader; | 
| 36 | 35 | 
| 37 class QuicServer : public EpollCallbackInterface { | 36 class QuicServer : public EpollCallbackInterface { | 
| 38  public: | 37  public: | 
| 39   explicit QuicServer(ProofSource* proof_source); | 38   explicit QuicServer(ProofSource* proof_source); | 
| 40   QuicServer(ProofSource* proof_source, | 39   QuicServer(ProofSource* proof_source, | 
| 41              const QuicConfig& config, | 40              const QuicConfig& config, | 
| 42              const QuicVersionVector& supported_versions); | 41              const QuicVersionVector& supported_versions); | 
| 43 | 42 | 
| (...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 131 | 130 | 
| 132   scoped_ptr<QuicPacketReader> packet_reader_; | 131   scoped_ptr<QuicPacketReader> packet_reader_; | 
| 133 | 132 | 
| 134   DISALLOW_COPY_AND_ASSIGN(QuicServer); | 133   DISALLOW_COPY_AND_ASSIGN(QuicServer); | 
| 135 }; | 134 }; | 
| 136 | 135 | 
| 137 }  // namespace tools | 136 }  // namespace tools | 
| 138 }  // namespace net | 137 }  // namespace net | 
| 139 | 138 | 
| 140 #endif  // NET_TOOLS_QUIC_QUIC_SERVER_H_ | 139 #endif  // NET_TOOLS_QUIC_QUIC_SERVER_H_ | 
| OLD | NEW | 
|---|