sending/verifying sentences between client and server using TCP or UDP with two distinct terminals