On Mon, 09 Jan 2006 18:44:53 +1100 Damien Miller <[EMAIL PROTECTED]> wrote:
> > i am in need to write event driven processing applications. I must > > avoid sequential processing. I will be mixing RPC queries and dns > > ones. > > > > I saw, at the first sigh, writing non batch program is very hard to > > accomplish. So i wonder how openbsd manages when there are n > > process, for instance, waiting on a file descriptor for > > readability/writeabilitiy simultaneously? How does it "notify" the > > readable/writeable status to each of the process doing poll/select? > > You could start by reading the poll(2) and select(2) manpages. This is > pretty basic stuff. > > Alternately you could use libevent, see event(3). Or if it doesn't have to be in C, you can use something like twisted for python or poe for perl. // nick

