ProxyCheckInfo.h 761 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. /*
  2. * This is the source code of tgnet library v. 1.1
  3. * It is licensed under GNU GPL v. 2 or later.
  4. * You should have received a copy of the license in this archive (see LICENSE).
  5. *
  6. * Copyright Nikolai Kudashov, 2015-2018.
  7. */
  8. #ifndef PROXYCHECKINFO_H
  9. #define PROXYCHECKINFO_H
  10. #include <sstream>
  11. #include "Defines.h"
  12. #ifdef ANDROID
  13. #include <jni.h>
  14. #endif
  15. class ProxyCheckInfo {
  16. public:
  17. ~ProxyCheckInfo();
  18. int32_t connectionNum = 0;
  19. int32_t requestToken = 0;
  20. std::string address;
  21. uint16_t port = 1080;
  22. std::string username;
  23. std::string password;
  24. std::string secret;
  25. int64_t pingId = 0;
  26. onRequestTimeFunc onRequestTime;
  27. int32_t instanceNum = 0;
  28. #ifdef ANDROID
  29. jobject ptr1 = nullptr;
  30. #endif
  31. };
  32. #endif