Lines Matching refs:cm
96 static void add_transfer(CURLM *cm, int i) in add_transfer() argument
102 curl_multi_add_handle(cm, eh); in add_transfer()
107 CURLM *cm; in main() local
114 cm = curl_multi_init(); in main()
117 curl_multi_setopt(cm, CURLMOPT_MAXCONNECTS, (long)MAX_PARALLEL); in main()
120 add_transfer(cm, transfers); in main()
123 curl_multi_perform(cm, &still_alive); in main()
125 while((msg = curl_multi_info_read(cm, &msgs_left))) { in main()
132 curl_multi_remove_handle(cm, e); in main()
139 add_transfer(cm, transfers++); in main()
142 curl_multi_wait(cm, NULL, 0, 1000, NULL); in main()
146 curl_multi_cleanup(cm); in main()