ARSA Language  2.8
(Encryption, GPU and Web 3.0)
curl.h
Go to the documentation of this file.
1 
15 class curl
16 {
17 public:
18 
20 
25  int curl(const char* cmd);
26 
28 
33  int thread(const char* cmd);
34 
36  void clear();
37 
40 
45  int addcmd(const string* cmd);
46 
48 
52  bool freecmd( int id );
53 
55 
59  bool execmd( int id );
60 
62 
66  bool execmdthread( int id );
67 
69 
74  bool killthread(int id);
75 
77 
81  bool isidok( int id );
82 
84 
88  int isend(int id);
89 
91 
94  bool isempty();
95 
97 
100  int getcount();
101 
103 
108  int getreturn( int id );
109 
111 
118  int getstate(int id);
119 
122 
126  const char* getresult(int id);
127 
129 
133  int getresultsize(int id);
134 
136 
140  const char* getcmd(int id);
141 
143 
147  int getdownloadpercent(int id);
148 
150 
154  int getuploadpercent(int id);
155 
157 
161  void break(int id);
162 
164 
168  const char* log(int id);
169 
170 };
int thread(const char *cmd)
Add and execute the given curl command line in another thread.
bool execmd(int id)
Execute curl command by id.
int getcount()
Query have number of command line in curl manager. Thread safe.
int getuploadpercent(int id)
Get percent of upload file.
const char * getcmd(int id)
Get a command line in this id. Thread safe.
int getreturn(int id)
Get return value from curl. Thread safe.
bool killthread(int id)
Kill curl thread call. (!!!thread supported only!!!, same curl.break())
bool isidok(int id)
Query this id is ok. Thread safe.
const char * getresult(int id)
bool freecmd(int id)
Free all memory, remove command, break and kill thread in this command by id from curl manager.
int addcmd(const string *cmd)
const char * log(int id)
Log curl command all details to string buffer.
int isend(int id)
Query this id is stopped process. Thread safe.
bool execmdthread(int id)
Execute curl command by id in another thread.
int curl(const char *cmd)
Add and execute the given curl command line.
int getresultsize(int id)
Get size of string result from curl execute after. Thread safe.
int getstate(int id)
Get state of curl process. Thread safe.
void clear()
Clear, free and kill thread in all commands.
bool isempty()
Query have a command line in curl manager. Thread safe.
Definition: curl.h:15
int getdownloadpercent(int id)
Get percent of download file.