solve the echo client and server