Home | History | Annotate | Download | only in testcurl

Lines Matching defs:cbc

130 struct CBC
143 struct CBC *cbc = ctx;
145 if (cbc->pos + size * nmemb > cbc->size)
147 memcpy (&cbc->buf[cbc->pos], ptr, size * nmemb);
148 cbc->pos += size * nmemb;
186 struct CBC cbc;
193 cbc.buf = buf;
194 cbc.size = 2048;
202 cbc.pos = 0;
206 curl_easy_setopt (c, CURLOPT_WRITEDATA, &cbc);
232 if (cbc.pos != strlen ("/hello_world"))
234 if (0 != strncmp ("/hello_world", cbc.buf, strlen ("/hello_world")))
246 struct CBC cbc;
253 cbc.buf = buf;
254 cbc.size = 2048;
262 cbc.pos = 0;
266 curl_easy_setopt (c, CURLOPT_WRITEDATA, &cbc);
292 if (cbc.pos != strlen ("/hello_world"))
294 if (0 != strncmp ("/hello_world", cbc.buf, strlen ("/hello_world")))
305 struct CBC cbc;
312 cbc.buf = buf;
313 cbc.size = 2048;
322 cbc.pos = 0;
326 curl_easy_setopt (c, CURLOPT_WRITEDATA, &cbc);
352 if (cbc.pos != strlen ("/hello_world"))
354 if (0 != strncmp ("/hello_world", cbc.buf, strlen ("/hello_world")))
365 struct CBC cbc;
382 cbc.buf = buf;
383 cbc.size = 2048;
397 cbc.pos = 0;
401 curl_easy_setopt (c, CURLOPT_WRITEDATA, &cbc);
491 if (cbc.pos != strlen ("/hello_world"))
493 if (0 != strncmp ("/hello_world", cbc.buf, strlen ("/hello_world")))