I'd suggest looking for code on a fd multiplexor, or hacking your own.
Simply put, one process uses a bunch of others to break the fd barrier.
These are quite common for servers (ask the MUD people), but they
can also be applied to databases and such.
-- Andrew E. Mileski --
mailto:aem@ott.hookup.net
http://www.redhat.com/~aem/