cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: need example of curl_multi_socket_all

From: Jeff Pohlmeyer <yetanothergeek_at_gmail.com>
Date: Sat, 28 Jul 2007 00:00:48 -0500

> PLEASE don't top-post!

This should be required reading for mailing list users:
  http://www.vranx.de/mail/tofu.html

> > but I can not find any examples in the curl-7.16.4.zip
> docs/examples/hiperfifo.c does!

I am just guessing, but most people who prefer *.zip archives
are probably Windows users, the hiperfifo example won't work there,
but the basic concepts should be the same.

If I remember correctly, I did manage to get this similar program
running on Windows, although the surrounding code is considerably
more complex:
  http://curl.haxx.se/mail/lib-2007-01/att-0022/proxydemo.c

> > 5. Setup a "collection" of sockets to supervise when your
> > socket callback is called.

There is something about step #5 that never quite made sense to me.
I assume this refers to the "conns" array in curl/hiper/hiper.c,
but I don't understand why such a "collection" is really required.

 - Jeff
Received on 2007-07-28