Here is an libevent based on echoServer with a little bit of my tweak (very minor).
The question is, when running a client simulation again, it appears to be stuck.