-class Input {
-public:
- Input(const std::string &stream_id);
-
- // Connect to the given URL and start streaming.
- // WARNING: Currently this blocks; it does not run in a separate thread!
- void run(const std::string &url);
-
-private:
- // Recovers the this pointer and calls curl_callback().
- static size_t curl_callback_thunk(char *ptr, size_t size, size_t nmemb, void *userdata);