Send data to and from client and server