Singleton-based multithreaded TCP server.