| 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 client, which connects to a specified port and sends QUIC | 5 // A toy client, which connects to a specified port and sends QUIC |
| 6 // request to that endpoint. | 6 // request to that endpoint. |
| 7 | 7 |
| 8 #ifndef NET_TOOLS_QUIC_QUIC_SIMPLE_CLIENT_H_ | 8 #ifndef NET_TOOLS_QUIC_QUIC_SIMPLE_CLIENT_H_ |
| 9 #define NET_TOOLS_QUIC_QUIC_SIMPLE_CLIENT_H_ | 9 #define NET_TOOLS_QUIC_QUIC_SIMPLE_CLIENT_H_ |
| 10 | 10 |
| (...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 74 bool fin_; | 74 bool fin_; |
| 75 | 75 |
| 76 private: | 76 private: |
| 77 DISALLOW_COPY_AND_ASSIGN(QuicDataToResend); | 77 DISALLOW_COPY_AND_ASSIGN(QuicDataToResend); |
| 78 }; | 78 }; |
| 79 | 79 |
| 80 // Create a quic client, which will have events managed by an externally owned | 80 // Create a quic client, which will have events managed by an externally owned |
| 81 // EpollServer. | 81 // EpollServer. |
| 82 QuicSimpleClient(IPEndPoint server_address, | 82 QuicSimpleClient(IPEndPoint server_address, |
| 83 const QuicServerId& server_id, | 83 const QuicServerId& server_id, |
| 84 const QuicVersionVector& supported_versions); | 84 const QuicVersionVector& supported_versions, |
| 85 ProofVerifier* proof_verifier); |
| 85 QuicSimpleClient(IPEndPoint server_address, | 86 QuicSimpleClient(IPEndPoint server_address, |
| 86 const QuicServerId& server_id, | 87 const QuicServerId& server_id, |
| 87 const QuicVersionVector& supported_versions, | 88 const QuicVersionVector& supported_versions, |
| 88 const QuicConfig& config); | 89 const QuicConfig& config, |
| 90 ProofVerifier* proof_verifier); |
| 89 | 91 |
| 90 ~QuicSimpleClient() override; | 92 ~QuicSimpleClient() override; |
| 91 | 93 |
| 92 // From QuicClientBase | 94 // From QuicClientBase |
| 93 bool Initialize() override; | 95 bool Initialize() override; |
| 94 bool WaitForEvents() override; | 96 bool WaitForEvents() override; |
| 95 QuicConnectionId GenerateNewConnectionId() override; | 97 QuicConnectionId GenerateNewConnectionId() override; |
| 96 | 98 |
| 97 // "Connect" to the QUIC server, including performing synchronous crypto | 99 // "Connect" to the QUIC server, including performing synchronous crypto |
| 98 // handshake. | 100 // handshake. |
| (...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 259 | 261 |
| 260 base::WeakPtrFactory<QuicSimpleClient> weak_factory_; | 262 base::WeakPtrFactory<QuicSimpleClient> weak_factory_; |
| 261 | 263 |
| 262 DISALLOW_COPY_AND_ASSIGN(QuicSimpleClient); | 264 DISALLOW_COPY_AND_ASSIGN(QuicSimpleClient); |
| 263 }; | 265 }; |
| 264 | 266 |
| 265 } // namespace tools | 267 } // namespace tools |
| 266 } // namespace net | 268 } // namespace net |
| 267 | 269 |
| 268 #endif // NET_TOOLS_QUIC_QUIC_SIMPLE_CLIENT_H_ | 270 #endif // NET_TOOLS_QUIC_QUIC_SIMPLE_CLIENT_H_ |
| OLD | NEW |