| 37 | } while (0) |
| 38 | |
| 39 | static int getErrorCode(const CURLcode &CURLResult) |
| 40 | { |
| 41 | if (CURLResult == CURLE_COULDNT_RESOLVE_HOST) { |
| 42 | return gen_framework_errno(error_class_network, network_errno_resolve); |
| 43 | } |
| 44 | |
| 45 | if (CURLResult == CURLE_COULDNT_CONNECT) |
| 46 | return gen_framework_errno(error_class_network, |
| 47 | network_errno_could_not_connect); |
| 48 | |
| 49 | if (CURLResult == CURLE_OPERATION_TIMEDOUT) { |
| 50 | return gen_framework_errno(error_class_network, |
| 51 | network_errno_connect_timeout); |
| 52 | } |
| 53 | |
| 54 | return FRAMEWORK_ERR(EIO); |
| 55 | } |
| 56 | |
| 57 | void Cicada::CURLConnection::setSourceConfig(Cicada::IDataSource::SourceConfig *pConfig) |
| 58 | { |
no test coverage detected