123456789101112131415161718192021 |
- #pragma once
- #include <pthread.h>
- #include <curl/curl.h>
- #include <string>
- class BBS2chProxyAuth {
- private:
- std::string sid;
- int expire;
- pthread_mutex_t *mutex;
-
- public:
- BBS2chProxyAuth(pthread_mutex_t *m) : expire(0), mutex(m) {};
- ~BBS2chProxyAuth() {};
- const std::string requestBodyForURL(const char *url, CURL *curl);
-
- private:
- bool updateSID(CURL *curl);
- };
|