Great, the libevent version seems to work fine so far, thanks for the pointer!

One quick question... after using listenTcp is there a way to make it stop listening later? Other than that, everything has ported over easily and is running at least as well as before :)