TCP server should provide a ready to use socket using a callback. The current implementation with a Template makes it not very flexible.