Started TCP client function