1234567891011121314151617181920 |
- #pragma once
- #include <pthread.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);
-
- private:
- bool updateSID(void);
- };
|