Movatterモバイル変換


[0]ホーム

URL:


everything curl

    Drive with easy

    The name 'easy' was picked simply because this is really the easy way to uselibcurl, and with easy, of course, comes a few limitations. Like, for example,that it can only do one transfer at a time and that it does the entire transfer ina single function call and returns once it is completed:

    res = curl_easy_perform( easy_handle );

    If the server is slow, if the transfer is large or if you have some unpleasanttimeouts in the network or similar, this function call can end up taking along time. You can, of course, set timeouts to not allow it to spend morethan N seconds, but it could still mean a substantial amount of time dependingon the particular conditions.

    If you want your application to do something else while libcurl is transferringwith the easy interface, you need to use multiple threads. If you want to domultiple simultaneous transfers when using the easy interface, you need to performeach of the transfers in its own thread.


    [8]ページ先頭

    ©2009-2025 Movatter.jp