curl-library
Re: not wait for reply
Date: Sat, 21 Aug 2004 14:18:36 -0400
> I am working on a "blockhole" http client, which send an HTTP request to
the apache and does not want to wait for the reply. Is there a simple way to
do this in curl. Basically, how do I detect that all send operations is
complete in libcurl and break out?
Well I haven't the slighted clue what "blockhole" is, but from your
description, it sounds like you are talking about non-blocking socket
operations. This is what curl's multi interface is for.
http://curl.haxx.se/lxr/source/docs/examples/multi-app.c that provides a
decent overview of how the multi interface works. It allows the HTTP request
to be handled asynchronously. To be truly asynchronous, you will need to
have libcurl compiled with c-ares support as well.
Dominick Meglio
Received on 2004-08-21