Home | History | Annotate | Download | only in testcurl

Lines Matching defs:cbc

58 struct CBC
68 struct CBC *cbc = ctx;
70 if (cbc->pos + size * nmemb > cbc->size)
72 memcpy (&cbc->buf[cbc->pos], ptr, size * nmemb);
73 cbc->pos += size * nmemb;
116 struct CBC cbc;
119 cbc.buf = buf;
120 cbc.size = 2048;
121 cbc.pos = 0;
129 curl_easy_setopt (c, CURLOPT_WRITEDATA, &cbc);
152 if (cbc.pos != strlen ("/hello_world"))
154 if (0 != strncmp ("/hello_world", cbc.buf, strlen ("/hello_world")))
166 struct CBC cbc;
169 cbc.buf = buf;
170 cbc.size = 2048;
171 cbc.pos = 0;
179 curl_easy_setopt (c, CURLOPT_WRITEDATA, &cbc);
202 if (cbc.pos != strlen ("/hello_world"))
204 if (0 != strncmp ("/hello_world", cbc.buf, strlen ("/hello_world")))
216 struct CBC cbc;
219 cbc.buf = buf;
220 cbc.size = 2048;
221 cbc.pos = 0;
230 curl_easy_setopt (c, CURLOPT_WRITEDATA, &cbc);
253 if (cbc.pos != strlen ("/hello_world"))
255 if (0 != strncmp ("/hello_world", cbc.buf, strlen ("/hello_world")))
267 struct CBC cbc;
280 cbc.buf = buf;
281 cbc.size = 2048;
282 cbc.pos = 0;
290 curl_easy_setopt (c, CURLOPT_WRITEDATA, &cbc);
376 if (cbc.pos != strlen ("/hello_world"))
378 if (0 != strncmp ("/hello_world", cbc.buf, strlen ("/hello_world")))
391 struct CBC cbc;
401 cbc.buf = buf;
402 cbc.size = 2048;
403 cbc.pos = 0;
427 curl_easy_setopt (c, CURLOPT_WRITEDATA, &cbc);
450 if (cbc.pos != strlen ("/hello_world"))
452 if (0 != strncmp ("/hello_world", cbc.buf, strlen ("/hello_world")))
556 struct CBC cbc;
560 cbc.buf = buf;
561 cbc.size = 2048;
562 cbc.pos = 0;
570 curl_easy_setopt (c, CURLOPT_WRITEDATA, &cbc);
596 if (cbc.pos != 0)