multi & hiper examples: updates and cleanups
authorDirk Manske <dm@nonitor.de>
Thu, 30 Sep 2010 09:33:33 +0000 (11:33 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Thu, 30 Sep 2010 20:20:52 +0000 (22:20 +0200)
commit5fb4279ec7199e291d9bf4c903f89395f60a3d31
tree612b471c4674c8655fb6526ba6526383062117af
parent67c83eb9eb491d6ec527e096b557d9cc689c2c08
multi & hiper examples: updates and cleanups

all multi and hiper examples:

* don't loop curl_multi_perform calls, that was <7.20.0 style, currently
  the exported multi functions will not return CURLM_CALL_MULTI_PERFORM

all hiper examples:
* renamed check_run_count to check_multi_info
* don't  compare current running handle count with previous value, this
  was the wrong way to check for finished requests, simply call
  curl_multi_info_read
* it's also safe to call curl_multi_remove_handle inside the
  curl_multi_info_read loop.

ghiper.c:
* replaced curl_multi_socket (that function is marked as obsolete) calls
  with curl_multi_socket_action calls (as in hiperfifo.c and
  evhiperfifo.c)

ghiper.c and evhiperfifo.c:
* be smart as hiperfifo.c, don't do uncessary curl_multi_* calls in
  new_conn and main
docs/examples/10-at-a-time.c
docs/examples/evhiperfifo.c
docs/examples/fopen.c
docs/examples/ghiper.c
docs/examples/hiperfifo.c
docs/examples/multi-app.c
docs/examples/multi-debugcallback.c
docs/examples/multi-double.c
docs/examples/multi-post.c
docs/examples/multi-single.c