cURL / Mailing Lists / curl-library / Single Mail

curl-library

Adding different file descriptors to curls before select()

From: Bo Mellberg <bosse_at_mellberg.org>
Date: Thu, 10 Sep 2015 00:00:40 +0200

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.

Do I use the multi interface to get the fdread, fdwrite and fdexcept
despriptor sets and then add file descriptors to those using FD_SET? I
can't fins any examples covering this.

Thanks,

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