Lines Matching refs:pooh

44   struct ReadThis *pooh = (struct ReadThis *) userp;  in read_callback()  local
50 switch(pooh->count++) { in read_callback()
55 pooh->origin = time(NULL); in read_callback()
58 delta = time(NULL) - pooh->origin; in read_callback()
72 struct ReadThis *pooh = (struct ReadThis *) clientp; in xferinfo() local
79 if(pooh->origin) { in xferinfo()
80 time_t delta = time(NULL) - pooh->origin; in xferinfo()
88 curl_easy_pause(pooh->easy, CURLPAUSE_CONT); in xferinfo()
113 struct ReadThis pooh; in test() local
125 pooh.origin = (time_t) 0; in test()
126 pooh.count = 0; in test()
127 pooh.easy = curl_easy_init(); in test()
130 test_setopt(pooh.easy, CURLOPT_URL, URL); in test()
133 test_setopt(pooh.easy, CURLOPT_VERBOSE, 1L); in test()
136 test_setopt(pooh.easy, CURLOPT_HEADER, 1L); in test()
140 mime = curl_mime_init(pooh.easy); in test()
151 NULL, NULL, &pooh); in test()
155 test_setopt(pooh.easy, CURLOPT_MIMEPOST, mime); in test()
161 CURLFORM_STREAM, &pooh, in test()
171 test_setopt(pooh.easy, CURLOPT_READFUNCTION, read_callback); in test()
175 test_setopt(pooh.easy, CURLOPT_HTTPPOST, formpost); in test()
182 mres = curl_multi_add_handle(multi, pooh.easy); in test()
195 if(pooh.origin) { in test()
196 time_t delta = time(NULL) - pooh.origin; in test()
205 curl_easy_pause(pooh.easy, CURLPAUSE_CONT); in test()
238 curl_multi_remove_handle(multi, pooh.easy); in test()
243 test_setopt(pooh.easy, CURLOPT_XFERINFODATA, &pooh); in test()
244 test_setopt(pooh.easy, CURLOPT_XFERINFOFUNCTION, xferinfo); in test()
245 test_setopt(pooh.easy, CURLOPT_NOPROGRESS, 0L); in test()
246 res = curl_easy_perform(pooh.easy); in test()
251 curl_easy_cleanup(pooh.easy); in test()