A multi-thread tcp server