cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Adding different file descriptors to curls before select()

From: Rich Gray <rgray_at_plustechnologies.com>
Date: Thu, 10 Sep 2015 08:55:52 -0400

Bo Mellberg wrote:
> Hi list,
>
> I'm building an embedded application that talks serial, bluetooth via
> openobex and http. For the first ones I have file descriptors as they
> are returned by "open" and "OBEX_GetFD".
>
> Now, trying to combine these together with the curl file descriptor
> sets, I can't get my head around it. I would like to be able to make
> one select() statement, which should listen to all three ways of
> incoming data.

Add your descriptor sets, and use curl_multi_fdset() to add the libcurl
descriptors.

- Rich

-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2015-09-10