got tcp and http clients and server working