Home | History | Annotate | Download | only in testcurl

Lines Matching defs:cbc

51 struct CBC
76 struct CBC *cbc = ctx;
78 if (cbc->pos + size * nmemb > cbc->size)
80 memcpy (&cbc->buf[cbc->pos], ptr, size * nmemb);
81 cbc->pos += size * nmemb;
179 struct CBC cbc;
183 cbc.buf = buf;
184 cbc.size = 2048;
185 cbc.pos = 0;
195 curl_easy_setopt (c, CURLOPT_WRITEDATA, &cbc);
222 if (cbc.pos != strlen ("/hello_world"))
224 if (0 != strncmp ("/hello_world", cbc.buf, strlen ("/hello_world")))
235 struct CBC cbc;
239 cbc.buf = buf;
240 cbc.size = 2048;
241 cbc.pos = 0;
251 curl_easy_setopt (c, CURLOPT_WRITEDATA, &cbc);
278 if (cbc.pos != strlen ("/hello_world"))
280 if (0 != strncmp ("/hello_world", cbc.buf, strlen ("/hello_world")))
291 struct CBC cbc;
295 cbc.buf = buf;
296 cbc.size = 2048;
297 cbc.pos = 0;
308 curl_easy_setopt (c, CURLOPT_WRITEDATA, &cbc);
335 if (cbc.pos != strlen ("/hello_world"))
337 if (0 != strncmp ("/hello_world", cbc.buf, strlen ("/hello_world")))
348 struct CBC cbc;
362 cbc.buf = buf;
363 cbc.size = 2048;
364 cbc.pos = 0;
374 curl_easy_setopt (c, CURLOPT_WRITEDATA, &cbc);
467 if (cbc.pos != strlen ("/hello_world"))
469 if (0 != strncmp ("/hello_world", cbc.buf, strlen ("/hello_world")))