Application structure.
Event loop and watchers based on libev.
TCP network; Transport/Protocol pattern; Demo.