sample of tcp comm