added timeout field to server struct to set the duration for which to wait for a reply from the server before returning with an error