Wed Sep 20 19:14:43 CEST 2006

polling & listen

seems like the easiest way to do the polling is to mimick select.
in   ((stream xt) (stream xt))
out: list with active streams

seems to work. now it's time to rewrite the polling loop using this
construct. first i need a dictionary, or change the polling function
so it takes a payload like above, currently it's just a list of
streams that gets split into ready / notready.

but, there's another problem: socket listeners for tcp and unix
sockets behave different than pipes. they are actually pipe
constructors: sombody connects, and it splits of a pipe fd. so the
question is: how is this going to be handled in pf?

it's probably a good idea to keep the 'listen' and 'poll' mechanisms