BBS2chProxyAuth.h 338 B

1234567891011121314151617181920
  1. #pragma once
  2. #include <pthread.h>
  3. #include <string>
  4. class BBS2chProxyAuth {
  5. private:
  6. std::string sid;
  7. int expire;
  8. pthread_mutex_t *mutex;
  9. public:
  10. BBS2chProxyAuth(pthread_mutex_t *m) : expire(0), mutex(m) {};
  11. ~BBS2chProxyAuth() {};
  12. const std::string requestBodyForURL(const char *url);
  13. private:
  14. bool updateSID(void);
  15. };