examples for TCP echo server and client