refactored pullFromServer to be a more general sendToServer method that
can accept any datagram we may want to send from the client to the
server.