Lines Matching refs:cm
49 static int init(int num, CURLM *cm, const char *url, const char *userpwd, in init() argument
86 res_multi_add_handle(cm, eh[num]); in init()
100 static int loop(int num, CURLM *cm, const char *url, const char *userpwd, in loop() argument
110 res = init(num, cm, url, userpwd, headers); in loop()
118 res_multi_perform(cm, &U); in loop()
131 res_multi_fdset(cm, &R, &W, &E, &M); in loop()
137 res_multi_timeout(cm, &L); in loop()
158 while((msg = curl_multi_info_read(cm, &Q)) != NULL) { in loop()
164 curl_multi_remove_handle(cm, e); in loop()
187 CURLM *cm = NULL; in test() local
216 res_multi_init(cm); in test()
223 res = loop(0, cm, URL, PROXYUSERPWD, headers); in test()
229 res = loop(1, cm, URL, PROXYUSERPWD, headers); in test()
236 curl_multi_remove_handle(cm, eh[i]); in test()
240 curl_multi_cleanup(cm); in test()