cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: how to use select() function for my own app using curl multi interface

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Wed, 22 Nov 2006 22:07:19 +0100 (CET)

On Wed, 22 Nov 2006, Manju Dash wrote:

> I am working on a project which gets data from two interfaces ,one is from
> external as HTTP request, for which I am using curl multi interface and
> other from my internal UNIX socket . How can I use select() function to
> check , from which interface I got the data so that I can process
> accordingly.

You FD_SET() your own file descriptors and when select() returns, you check if
one of your descriptors trigged it.

-- 
  Commercial curl and libcurl Technical Support: http://haxx.se/curl.html
Received on 2006-11-22