Lines Matching defs:data
26 * This test sends data with CURLOPT_KEEP_SENDING_ON_ERROR.
29 * because this implies that the data has been sent completely to the server.
44 static void reset_data(struct cb_data *data, CURL *curl)
46 data->easy_handle = curl;
47 data->response_received = 0;
48 data->paused = 0;
49 data->remaining_bytes = 3;
56 struct cb_data *data = (struct cb_data *)userdata;
59 if(data->response_received) {
62 size_t bytes_to_send = data->remaining_bytes;
68 data->remaining_bytes -= bytes_to_send;
73 data->paused = 1;
82 struct cb_data *data = (struct cb_data *)userdata;
89 data->response_received = 1;
91 if(data->paused) {
92 /* continue to send request body data */
93 data->paused = 0;
94 curl_easy_pause(data->easy_handle, CURLPAUSE_CONT);
132 struct cb_data data;
148 reset_data(&data, curl);
153 (curl_off_t)data.remaining_bytes);
156 test_setopt(curl, CURLOPT_READDATA, &data);
158 test_setopt(curl, CURLOPT_WRITEDATA, &data);
166 reset_data(&data, curl);
176 reset_data(&data, curl);
184 reset_data(&data, curl);