#ifndef SPEEDTEST_H #define SPEEDTEST_H class speedtest { public: size_t test(config::proxy_entry*); size_t test(config::static_proxy_entry*); speedtest() : curl(NULL){} speedtest(const std::string& url) : curl(NULL) { test_url = url; } private: struct memory_struct { char *memory; size_t size; }; static size_t curl_data_callback(void *contents, size_t size, size_t nmemb, void *userp); boost::timer timer; std::string test_url; CURL *curl; }; #endif //SPEEDTEST_H