basic server and client communication