Lines Matching refs:CBC
61 struct CBC
85 struct CBC *cbc = ctx;
87 if (cbc->pos + size * nmemb > cbc->size)
89 memcpy (&cbc->buf[cbc->pos], ptr, size * nmemb);
90 cbc->pos += size * nmemb;
146 struct CBC cbc;
152 cbc.buf = buf;
153 cbc.size = 2048;
154 cbc.pos = 0;
165 curl_easy_setopt (c, CURLOPT_WRITEDATA, &cbc);
192 if (cbc.pos != strlen ("/hello_world"))
194 if (0 != strncmp ("/hello_world", cbc.buf, strlen ("/hello_world")))
204 struct CBC cbc;
210 cbc.buf = buf;
211 cbc.size = 2048;
212 cbc.pos = 0;
223 curl_easy_setopt (c, CURLOPT_WRITEDATA, &cbc);
250 if (cbc.pos != strlen ("/hello_world"))
252 fprintf (stderr, "Got invalid response `%.*s'\n", (int)cbc.pos, cbc.buf);
255 if (0 != strncmp ("/hello_world", cbc.buf, strlen ("/hello_world")))
265 struct CBC cbc;
271 cbc.buf = buf;
272 cbc.size = 2048;
273 cbc.pos = 0;
285 curl_easy_setopt (c, CURLOPT_WRITEDATA, &cbc);
312 if (cbc.pos != strlen ("/hello_world"))
314 fprintf (stderr, "Got invalid response `%.*s'\n", (int)cbc.pos, cbc.buf);
317 if (0 != strncmp ("/hello_world", cbc.buf, strlen ("/hello_world")))
327 struct CBC cbc;
342 cbc.buf = buf;
343 cbc.size = 2048;
344 cbc.pos = 0;
356 curl_easy_setopt (c, CURLOPT_WRITEDATA, &cbc);
446 if (cbc.pos != strlen ("/hello_world"))
448 fprintf (stderr, "Got invalid response `%.*s'\n", (int)cbc.pos, cbc.buf);
451 if (0 != strncmp ("/hello_world", cbc.buf, strlen ("/hello_world")))