~ubuntu-branches/ubuntu/saucy/curl/saucy-201307251546

« back to all changes in this revision

Viewing changes to docs/examples/multi-double.c

  • Committer: Bazaar Package Importer
  • Author(s): Ramakrishnan Muthukrishnan
  • Date: 2010-10-18 11:13:17 UTC
  • mto: (3.6.1 experimental) (1.3.1)
  • mto: This revision was merged to the branch mainline in revision 44.
  • Revision ID: james.westby@ubuntu.com-20101018111317-9rkas34ecwtq0upn
Tags: upstream-7.21.2
ImportĀ upstreamĀ versionĀ 7.21.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
34
34
  http_handle2 = curl_easy_init();
35
35
 
36
36
  /* set options */
37
 
  curl_easy_setopt(http_handle, CURLOPT_URL, "http://www.haxx.se/");
 
37
  curl_easy_setopt(http_handle, CURLOPT_URL, "http://www.example.com/");
38
38
 
39
39
  /* set options */
40
40
  curl_easy_setopt(http_handle2, CURLOPT_URL, "http://localhost/");
47
47
  curl_multi_add_handle(multi_handle, http_handle2);
48
48
 
49
49
  /* we start some action by calling perform right away */
50
 
  while(CURLM_CALL_MULTI_PERFORM ==
51
 
        curl_multi_perform(multi_handle, &still_running));
 
50
  curl_multi_perform(multi_handle, &still_running);
52
51
 
53
52
  while(still_running) {
54
53
    struct timeval timeout;
96
95
    case 0:
97
96
    default:
98
97
      /* timeout or readable/writable sockets */
99
 
      while(CURLM_CALL_MULTI_PERFORM ==
100
 
            curl_multi_perform(multi_handle, &still_running));
 
98
      curl_multi_perform(multi_handle, &still_running);
101
99
      break;
102
100
    }
103
101
  }