Home
last modified time | relevance | path

Searched full:multi (Results 1 – 25 of 2159) sorted by relevance

12345678910>>...87

/external/curl/lib/
Dmulti.c68 static void singlesocket(struct Curl_multi *multi,
70 static int update_timer(struct Curl_multi *multi);
73 struct Curl_multi *multi,
75 static CURLMcode multi_timeout(struct Curl_multi *multi,
140 data->multi->num_alive--; in mstate()
262 * the list kept in the multi handle.
264 static CURLMcode multi_addmsg(struct Curl_multi *multi, in multi_addmsg() argument
267 if(!Curl_llist_insert_next(multi->msglist, multi->msglist->tail, msg)) in multi_addmsg()
287 struct Curl_multi *multi = calloc(1, sizeof(struct Curl_multi)); in Curl_multi_handle() local
289 if(!multi) in Curl_multi_handle()
[all …]
Deasy.c426 static int events_timer(CURLM *multi, /* multi handle */ in events_timer() argument
431 (void)multi; in events_timer()
553 * Do the multi handle setups that only event-based transfers need.
555 static void events_setup(CURLM *multi, struct events *ev) in events_setup() argument
558 curl_multi_setopt(multi, CURLMOPT_TIMERFUNCTION, events_timer); in events_setup()
559 curl_multi_setopt(multi, CURLMOPT_TIMERDATA, ev); in events_setup()
562 curl_multi_setopt(multi, CURLMOPT_SOCKETFUNCTION, events_socket); in events_setup()
563 curl_multi_setopt(multi, CURLMOPT_SOCKETDATA, ev); in events_setup()
572 static CURLcode wait_or_timeout(struct Curl_multi *multi, struct events *ev) in wait_or_timeout() argument
613 mcode = curl_multi_socket_action(multi, CURL_SOCKET_TIMEOUT, 0, in wait_or_timeout()
[all …]
/external/curl/docs/libcurl/
Dlibcurl-multi.323 .TH libcurl-multi 3 "19 Sep 2014" "libcurl" "libcurl multi interface"
25 libcurl-multi \- how to use the multi interface
27 This is an overview on how to use the libcurl multi interface in your C
33 All functions in the multi interface are prefixed with curl_multi.
35 The multi interface offers several abilities that the easy interface doesn't.
49 .SH "ONE MULTI HANDLE MANY EASY HANDLES"
50 To use the multi interface, you must first create a 'multi handle' with
54 With a multi handle and the multi interface you can do any amount of
60 There are two flavours of the multi interface, the select() oriented one and
67 you should add the easy handle to the multi handle with
[all …]
Dcurl_multi_add_handle.324 curl_multi_add_handle - add an easy handle to a multi session
31 Adds a standard easy handle to the multi stack. This function call will make
34 While an easy handle is added to a multi stack, you can not and you must not
36 handle from the multi stack again, it is perfectly fine to use it with the
41 use the DNS cache that is shared between all easy handles within the multi
44 When an easy interface is added to a multi handle, it will use a shared
45 connection cache owned by the multi handle. Removing and adding new easy
49 If you have CURLMOPT_TIMERFUNCTION set in the multi handle (and you really
55 The easy handle will remain added to the multi handle until you remove it
59 You should remove the easy handle from the multi stack before you terminate
[all …]
/external/libmicrohttpd/src/testcurl/https/
Dtest_https_get_select.c82 CURLM *multi; in testExternalGet() local
94 multi = NULL; in testExternalGet()
131 multi = curl_multi_init (); in testExternalGet()
132 if (multi == NULL) in testExternalGet()
138 mret = curl_multi_add_handle (multi, c); in testExternalGet()
141 curl_multi_cleanup (multi); in testExternalGet()
147 while ((time (NULL) - start < 5) && (multi != NULL)) in testExternalGet()
153 mret = curl_multi_fdset (multi, &rs, &ws, &es, &max); in testExternalGet()
156 curl_multi_remove_handle (multi, c); in testExternalGet()
157 curl_multi_cleanup (multi); in testExternalGet()
[all …]
Dtest_empty_response.c68 CURLM *multi; in testInternalSelectGet() local
79 multi = NULL; in testInternalSelectGet()
119 multi = curl_multi_init (); in testInternalSelectGet()
120 if (multi == NULL) in testInternalSelectGet()
126 mret = curl_multi_add_handle (multi, c); in testInternalSelectGet()
129 curl_multi_cleanup (multi); in testInternalSelectGet()
135 while ((time (NULL) - start < 5) && (multi != NULL)) in testInternalSelectGet()
141 mret = curl_multi_fdset (multi, &rs, &ws, &es, &max); in testInternalSelectGet()
144 curl_multi_remove_handle (multi, c); in testInternalSelectGet()
145 curl_multi_cleanup (multi); in testInternalSelectGet()
[all …]
/external/libmicrohttpd/src/testcurl/
Dtest_callback.c93 CURLM *multi; in main() local
115 multi = curl_multi_init (); in main()
116 if (multi == NULL) in main()
122 mret = curl_multi_add_handle (multi, c); in main()
125 curl_multi_cleanup (multi); in main()
137 curl_multi_perform (multi, &running); in main()
138 if (NULL != multi) in main()
140 mret = curl_multi_fdset (multi, &rs, &ws, &es, &max); in main()
143 curl_multi_remove_handle (multi, c); in main()
144 curl_multi_cleanup (multi); in main()
[all …]
Dtest_process_arguments.c118 CURLM *multi; in testExternalGet() local
129 multi = NULL; in testExternalGet()
155 multi = curl_multi_init (); in testExternalGet()
156 if (multi == NULL) in testExternalGet()
162 mret = curl_multi_add_handle (multi, c); in testExternalGet()
165 curl_multi_cleanup (multi); in testExternalGet()
171 while ((time (NULL) - start < 5) && (multi != NULL)) in testExternalGet()
177 curl_multi_perform (multi, &running); in testExternalGet()
178 mret = curl_multi_fdset (multi, &rs, &ws, &es, &max); in testExternalGet()
181 curl_multi_remove_handle (multi, c); in testExternalGet()
[all …]
Dtest_parse_cookies.c115 CURLM *multi; in testExternalGet() local
126 multi = NULL; in testExternalGet()
156 multi = curl_multi_init (); in testExternalGet()
157 if (multi == NULL) in testExternalGet()
163 mret = curl_multi_add_handle (multi, c); in testExternalGet()
166 curl_multi_cleanup (multi); in testExternalGet()
172 while ((time (NULL) - start < 5) && (multi != NULL)) in testExternalGet()
178 curl_multi_perform (multi, &running); in testExternalGet()
179 mret = curl_multi_fdset (multi, &rs, &ws, &es, &max); in testExternalGet()
182 curl_multi_remove_handle (multi, c); in testExternalGet()
[all …]
Dtest_quiesce.c309 CURLM *multi; in testExternalGet() local
322 multi = NULL; in testExternalGet()
332 multi = curl_multi_init (); in testExternalGet()
333 if (multi == NULL) in testExternalGet()
339 mret = curl_multi_add_handle (multi, c); in testExternalGet()
342 curl_multi_cleanup (multi); in testExternalGet()
350 while ((time (NULL) - start < 5) && (multi != NULL)) in testExternalGet()
356 curl_multi_perform (multi, &running); in testExternalGet()
357 mret = curl_multi_fdset (multi, &rs, &ws, &es, &max); in testExternalGet()
360 curl_multi_remove_handle (multi, c); in testExternalGet()
[all …]
Dtest_get_chunked.c289 CURLM *multi; in testExternalGet() local
300 multi = NULL; in testExternalGet()
322 multi = curl_multi_init (); in testExternalGet()
323 if (multi == NULL) in testExternalGet()
329 mret = curl_multi_add_handle (multi, c); in testExternalGet()
332 curl_multi_cleanup (multi); in testExternalGet()
338 while ((time (NULL) - start < 5) && (multi != NULL)) in testExternalGet()
344 curl_multi_perform (multi, &running); in testExternalGet()
345 mret = curl_multi_fdset (multi, &rs, &ws, &es, &max); in testExternalGet()
348 curl_multi_remove_handle (multi, c); in testExternalGet()
[all …]
Dtest_put.c299 CURLM *multi; in testExternalPut() local
312 multi = NULL; in testExternalPut()
342 multi = curl_multi_init (); in testExternalPut()
343 if (multi == NULL) in testExternalPut()
349 mret = curl_multi_add_handle (multi, c); in testExternalPut()
352 curl_multi_cleanup (multi); in testExternalPut()
358 while ((time (NULL) - start < 5) && (multi != NULL)) in testExternalPut()
364 curl_multi_perform (multi, &running); in testExternalPut()
365 mret = curl_multi_fdset (multi, &rs, &ws, &es, &max); in testExternalPut()
368 curl_multi_remove_handle (multi, c); in testExternalPut()
[all …]
Dtest_process_headers.c303 CURLM *multi; in testExternalGet() local
314 multi = NULL; in testExternalGet()
339 multi = curl_multi_init (); in testExternalGet()
340 if (multi == NULL) in testExternalGet()
346 mret = curl_multi_add_handle (multi, c); in testExternalGet()
349 curl_multi_cleanup (multi); in testExternalGet()
355 while ((time (NULL) - start < 5) && (multi != NULL)) in testExternalGet()
361 curl_multi_perform (multi, &running); in testExternalGet()
362 mret = curl_multi_fdset (multi, &rs, &ws, &es, &max); in testExternalGet()
365 curl_multi_remove_handle (multi, c); in testExternalGet()
[all …]
Dtest_put_chunked.c309 CURLM *multi; in testExternalPut() local
322 multi = NULL; in testExternalPut()
352 multi = curl_multi_init (); in testExternalPut()
353 if (multi == NULL) in testExternalPut()
359 mret = curl_multi_add_handle (multi, c); in testExternalPut()
362 curl_multi_cleanup (multi); in testExternalPut()
368 while ((time (NULL) - start < 5) && (multi != NULL)) in testExternalPut()
374 curl_multi_perform (multi, &running); in testExternalPut()
375 mret = curl_multi_fdset (multi, &rs, &ws, &es, &max); in testExternalPut()
378 curl_multi_remove_handle (multi, c); in testExternalPut()
[all …]
Dtest_get_sendfile.c271 CURLM *multi; in testExternalGet() local
282 multi = NULL; in testExternalGet()
307 multi = curl_multi_init (); in testExternalGet()
308 if (multi == NULL) in testExternalGet()
314 mret = curl_multi_add_handle (multi, c); in testExternalGet()
317 curl_multi_cleanup (multi); in testExternalGet()
323 while ((time (NULL) - start < 5) && (multi != NULL)) in testExternalGet()
329 curl_multi_perform (multi, &running); in testExternalGet()
330 mret = curl_multi_fdset (multi, &rs, &ws, &es, &max); in testExternalGet()
333 curl_multi_remove_handle (multi, c); in testExternalGet()
[all …]
Dtest_large_put.c328 CURLM *multi; in testExternalPut() local
345 multi = NULL; in testExternalPut()
374 multi = curl_multi_init (); in testExternalPut()
375 if (multi == NULL) in testExternalPut()
381 mret = curl_multi_add_handle (multi, c); in testExternalPut()
384 curl_multi_cleanup (multi); in testExternalPut()
390 while ((time (NULL) - start < 5) && (multi != NULL)) in testExternalPut()
396 curl_multi_perform (multi, &running); in testExternalPut()
397 mret = curl_multi_fdset (multi, &rs, &ws, &es, &max); in testExternalPut()
400 curl_multi_remove_handle (multi, c); in testExternalPut()
[all …]
Dtest_postform.c349 CURLM *multi; in testExternalPost() local
361 multi = NULL; in testExternalPost()
390 multi = curl_multi_init (); in testExternalPost()
391 if (multi == NULL) in testExternalPost()
398 mret = curl_multi_add_handle (multi, c); in testExternalPost()
401 curl_multi_cleanup (multi); in testExternalPost()
408 while ((time (NULL) - start < 5) && (multi != NULL)) in testExternalPost()
414 curl_multi_perform (multi, &running); in testExternalPost()
415 mret = curl_multi_fdset (multi, &rs, &ws, &es, &max); in testExternalPost()
418 curl_multi_remove_handle (multi, c); in testExternalPost()
[all …]
/external/chromium-trace/catapult/third_party/Paste/paste/util/
Dmultidict.py89 multi = {}
94 if key in multi:
98 multi[key] = None
228 def __init__(self, multi=None, encoding=None, errors='strict', argument
230 self.multi = multi
237 items = self.multi._items
282 return self._decode_value(self.multi.__getitem__(key))
286 self.multi.__setitem__(key, value)
293 self.multi.add(key, value)
300 return [self._decode_value(v) for v in self.multi.getall(key)]
[all …]
/external/curl/docs/examples/
DREADME59 multi-app.c - a multi-interface app
60 multi-debugcallback.c - a multi-interface app using the debug callback
61 multi-double.c - a multi-interface app doing two simultaneous transfers
62 multi-post.c - a multi-interface app doing a multipart formpost
63 multi-single.c - a multi-interface app getting a single file
64 multi-uv.c - a multi-interface app using libuv
65 multithread.c - an example using multi-treading transferring multiple files
66 opensslthreadlock.c - show how to do locking when using OpenSSL multi-threaded
/external/curl/tests/libtest/
Dlib536.c32 static int perform(CURLM *multi) in perform() argument
45 res_multi_perform(multi, &handles); in perform()
60 res_multi_fdset(multi, &fdread, &fdwrite, &fdexcep, &maxfd); in perform()
80 CURLM *multi = NULL; in test() local
88 multi_init(multi); in test()
92 multi_setopt(multi, CURLMOPT_PIPELINING, 1L); in test()
98 res_multi_add_handle(multi, easy); in test()
104 res = perform(multi); in test()
110 curl_multi_remove_handle(multi, easy); in test()
117 res_multi_add_handle(multi, easy); in test()
[all …]
Dlib1502.c27 * leak in the CURLOPT_RESOLVE handling with the multi interface.
45 CURLM* multi = NULL; in test() local
76 multi_init(multi); in test()
78 multi_add_handle(multi, easy); in test()
80 multi_perform(multi, &still_running); in test()
97 multi_fdset(multi, &fdread, &fdwrite, &fdexcep, &maxfd); in test()
105 multi_perform(multi, &still_running); in test()
114 curl_multi_cleanup(multi); in test()
121 curl_multi_remove_handle(multi, easy); in test()
122 curl_multi_cleanup(multi); in test()
[all …]
/external/libmicrohttpd/src/testzzuf/
Dtest_get.c191 CURLM *multi; in testExternalGet() local
202 multi = NULL; in testExternalGet()
210 multi = curl_multi_init (); in testExternalGet()
211 if (multi == NULL) in testExternalGet()
235 mret = curl_multi_add_handle (multi, c); in testExternalGet()
238 curl_multi_cleanup (multi); in testExternalGet()
251 curl_multi_perform (multi, &running); in testExternalGet()
252 mret = curl_multi_fdset (multi, &rs, &ws, &es, &max); in testExternalGet()
255 curl_multi_remove_handle (multi, c); in testExternalGet()
256 curl_multi_cleanup (multi); in testExternalGet()
[all …]
Dtest_get_chunked.c211 CURLM *multi; in testExternalGet() local
222 multi = NULL; in testExternalGet()
230 multi = curl_multi_init (); in testExternalGet()
231 if (multi == NULL) in testExternalGet()
252 mret = curl_multi_add_handle (multi, c); in testExternalGet()
255 curl_multi_cleanup (multi); in testExternalGet()
268 curl_multi_perform (multi, &running); in testExternalGet()
269 mret = curl_multi_fdset (multi, &rs, &ws, &es, &max); in testExternalGet()
272 curl_multi_remove_handle (multi, c); in testExternalGet()
273 curl_multi_cleanup (multi); in testExternalGet()
[all …]
Dtest_put_chunked.c239 CURLM *multi; in testExternalPut() local
252 multi = NULL; in testExternalPut()
262 multi = curl_multi_init (); in testExternalPut()
263 if (multi == NULL) in testExternalPut()
293 mret = curl_multi_add_handle (multi, c); in testExternalPut()
296 curl_multi_cleanup (multi); in testExternalPut()
309 curl_multi_perform (multi, &running); in testExternalPut()
310 mret = curl_multi_fdset (multi, &rs, &ws, &es, &max); in testExternalPut()
313 curl_multi_remove_handle (multi, c); in testExternalPut()
314 curl_multi_cleanup (multi); in testExternalPut()
[all …]
Dtest_post.c259 CURLM *multi; in testExternalPost() local
270 multi = NULL; in testExternalPost()
280 multi = curl_multi_init (); in testExternalPost()
281 if (multi == NULL) in testExternalPost()
313 mret = curl_multi_add_handle (multi, c); in testExternalPost()
316 curl_multi_cleanup (multi); in testExternalPost()
329 curl_multi_perform (multi, &running); in testExternalPost()
330 mret = curl_multi_fdset (multi, &rs, &ws, &es, &max); in testExternalPost()
333 curl_multi_remove_handle (multi, c); in testExternalPost()
334 curl_multi_cleanup (multi); in testExternalPost()
[all …]

12345678910>>...87