| 80 | class DownloadTask { |
| 81 | public: |
| 82 | explicit DownloadTask(HttpClient *http_client) |
| 83 | : m_connector(AF_INET, IPPROTO_TCP), |
| 84 | m_error_code(HttpClient::SUCCESS), |
| 85 | m_max_response_length(0) |
| 86 | { |
| 87 | m_connector.SetLinger(true, 1); |
| 88 | m_http_client = http_client; |
| 89 | } |
| 90 | |
| 91 | ~DownloadTask() |
| 92 | { |