http and tcp server example