25 int curl(
const char* cmd);
33 int thread(
const char* cmd);
45 int addcmd(
const string* cmd);
140 const char*
getcmd(
int id);
168 const char*
log(
int id);
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.
int getdownloadpercent(int id)
Get percent of download file.