A sample of TCP client