| 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_CLIENT_H_ | 8 #ifndef NET_TOOLS_QUIC_QUIC_CLIENT_H_ |
| 9 #define NET_TOOLS_QUIC_QUIC_CLIENT_H_ | 9 #define NET_TOOLS_QUIC_QUIC_CLIENT_H_ |
| 10 | 10 |
| (...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 72 | 72 |
| 73 private: | 73 private: |
| 74 DISALLOW_COPY_AND_ASSIGN(QuicDataToResend); | 74 DISALLOW_COPY_AND_ASSIGN(QuicDataToResend); |
| 75 }; | 75 }; |
| 76 | 76 |
| 77 // Create a quic client, which will have events managed by an externally owned | 77 // Create a quic client, which will have events managed by an externally owned |
| 78 // EpollServer. | 78 // EpollServer. |
| 79 QuicClient(IPEndPoint server_address, | 79 QuicClient(IPEndPoint server_address, |
| 80 const QuicServerId& server_id, | 80 const QuicServerId& server_id, |
| 81 const QuicVersionVector& supported_versions, | 81 const QuicVersionVector& supported_versions, |
| 82 EpollServer* epoll_server); | 82 EpollServer* epoll_server, |
| 83 ProofVerifier* proof_verifier); |
| 83 QuicClient(IPEndPoint server_address, | 84 QuicClient(IPEndPoint server_address, |
| 84 const QuicServerId& server_id, | 85 const QuicServerId& server_id, |
| 85 const QuicVersionVector& supported_versions, | 86 const QuicVersionVector& supported_versions, |
| 86 const QuicConfig& config, | 87 const QuicConfig& config, |
| 87 EpollServer* epoll_server); | 88 EpollServer* epoll_server, |
| 89 ProofVerifier* proof_verifier); |
| 88 | 90 |
| 89 ~QuicClient() override; | 91 ~QuicClient() override; |
| 90 | 92 |
| 91 // From QuicClientBase | 93 // From QuicClientBase |
| 92 bool Initialize() override; | 94 bool Initialize() override; |
| 93 bool WaitForEvents() override; | 95 bool WaitForEvents() override; |
| 94 | 96 |
| 95 // "Connect" to the QUIC server, including performing synchronous crypto | 97 // "Connect" to the QUIC server, including performing synchronous crypto |
| 96 // handshake. | 98 // handshake. |
| 97 bool Connect(); | 99 bool Connect(); |
| (...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 264 // must be resent upon a subsequent successful connection. | 266 // must be resent upon a subsequent successful connection. |
| 265 std::vector<QuicDataToResend*> data_to_resend_on_connect_; | 267 std::vector<QuicDataToResend*> data_to_resend_on_connect_; |
| 266 | 268 |
| 267 DISALLOW_COPY_AND_ASSIGN(QuicClient); | 269 DISALLOW_COPY_AND_ASSIGN(QuicClient); |
| 268 }; | 270 }; |
| 269 | 271 |
| 270 } // namespace tools | 272 } // namespace tools |
| 271 } // namespace net | 273 } // namespace net |
| 272 | 274 |
| 273 #endif // NET_TOOLS_QUIC_QUIC_CLIENT_H_ | 275 #endif // NET_TOOLS_QUIC_QUIC_CLIENT_H_ |
| OLD | NEW |