| 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 | |
| 9 | #ifndef PROXYCHECKINFO_H |
| 10 | #define PROXYCHECKINFO_H |
| 11 | |
| 12 | #include <sstream> |
| 13 | #include "Defines.h" |
| 14 | |
| 15 | #ifdef ANDROID |
| 16 | #include <jni.h> |
| 17 | #endif |
| 18 | |
| 19 | class ProxyCheckInfo { |
| 20 | |
| 21 | public: |
| 22 | ~ProxyCheckInfo(); |
| 23 | |
| 24 | int32_t connectionNum = 0; |
| 25 | int32_t requestToken = 0; |
| 26 | std::string address; |
| 27 | uint16_t port = 1080; |
| 28 | std::string username; |
| 29 | std::string password; |
| 30 | std::string secret; |
| 31 | int64_t pingId = 0; |
| 32 | onRequestTimeFunc onRequestTime; |
| 33 | int32_t instanceNum = 0; |
| 34 | |
| 35 | #ifdef ANDROID |
| 36 | jobject ptr1 = nullptr; |
| 37 | #endif |
| 38 | }; |
| 39 | |
| 40 | |
| 41 | #endif |
| 42 | |