Tcp server for learning purpose