Home | History | Annotate | Download | only in testcurl

Lines Matching defs:cbc

50 struct CBC
61 struct CBC *cbc = ctx;
63 if (cbc->pos + size * nmemb > cbc->size)
65 memcpy (&cbc->buf[cbc->pos], ptr, size * nmemb);
66 cbc->pos += size * nmemb;
160 setupCURL (void *cbc)
167 curl_easy_setopt (c, CURLOPT_WRITEDATA, cbc);
187 struct CBC cbc;
193 cbc.buf = buf;
194 cbc.size = 2048;
195 cbc.pos = 0;
208 c = setupCURL(&cbc);
220 if (cbc.pos != strlen ("/hello_world")) {
225 if (0 != strncmp ("/hello_world", cbc.buf, strlen ("/hello_world"))) {
240 cbc.pos = 0;
266 if (cbc.pos != strlen ("/hello_world"))
268 fprintf(stderr, "%s\n", cbc.buf);
274 if (0 != strncmp ("/hello_world", cbc.buf, strlen ("/hello_world")))
276 fprintf(stderr, "%s\n", cbc.buf);
308 struct CBC cbc;
323 cbc.buf = buf;
324 cbc.size = 2048;
325 cbc.pos = 0;
330 c = setupCURL(&cbc);
411 c = setupCURL (&cbc);
423 if (cbc.pos != strlen ("/hello_world"))
425 if (0 != strncmp ("/hello_world", cbc.buf, strlen ("/hello_world")))