IRCd:Event subsystem
ircd-darenet's event subsystem (which handles outgoing and incoming connections and packets, and event polling) is currently located mostly in ircd/s_bsd.c and ircd/event_*.c.
Wish list
These files alone weigh in at more than 100 KB. Kev, of ircu, has almost finished writing libevent (not to be confused with libevent by Niels Provos), a library which does all of this and was designed for making event handling in sever applications simple (for example, it can use global configuration data to choose the right backend and settings) yet scabale. As as it is finsihed, ircd-darenet will use it.