Is there any docs about apr_poll? No docs is in the web page http://apr.apache.org and no docs about apr is with the software.
In this way is very hard to use apr for a new user.
For example there is no dcs about all these define
#define APR_POLLIN 0x001 00087 #define APR_POLLPRI 0x002 00088 #define APR_POLLOUT 0x004 00089 #define APR_POLLERR 0x010 00090 #define APR_POLLHUP 0x020 00091 #define APR_POLLNVAL 0x040
What are the differences ?
Can someone tell me how to use apr_poll or where I can find more docs?
Thanks very much
--Marco
Bill Stoddard wrote:
Marco Spinetti wrote:
Hi all,
because of my failure using threads in apache 1.3.x with apr (apache mail list tells me that using threads with apache 1.3 isn't possible), I decided to replace threads with apr_poll.
I don't know much about apr_poll: my purpose was to use threads to execute different connections simultanealy.
Is it possible using apr_poll?
Does it execute no blocking IO?
Thanks for your advice
--Marco
Apache 1.3 on Unix uses uses blocking network i/o and signals for doing timeouts. It would be possible to do non-blocking network i/o but then you'd have to deal with all the state information (i/o buffers, et. al.) that resides on the call stack.
Bill