Return-Path: Delivered-To: apmail-apr-dev-archive@www.apache.org Received: (qmail 90823 invoked from network); 20 Jan 2004 15:39:41 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 20 Jan 2004 15:39:41 -0000 Received: (qmail 11669 invoked by uid 500); 20 Jan 2004 15:39:35 -0000 Delivered-To: apmail-apr-dev-archive@apr.apache.org Received: (qmail 11640 invoked by uid 500); 20 Jan 2004 15:39:35 -0000 Mailing-List: contact dev-help@apr.apache.org; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: Delivered-To: mailing list dev@apr.apache.org Received: (qmail 11548 invoked from network); 20 Jan 2004 15:39:34 -0000 Message-ID: <400D4BA9.3000600@pisa.iol.it> Date: Tue, 20 Jan 2004 16:39:21 +0100 From: Marco Spinetti User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.5) Gecko/20031007 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Bill Stoddard CC: dev-apr Subject: Re: Apr_poll References: <400797E1.2010208@pisa.iol.it> <4008021C.3020608@wstoddard.com> In-Reply-To: <4008021C.3020608@wstoddard.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N I tried to read the examples about apr_poll in test directory of apr but it's very hard. 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 >