Database Reference
In-Depth Information
{"name": "dirty_shared", "type": "integer"}
]}
]}
]
Client Server Protocol
Generally, when implementing client/server communication, you would use
a full-featured framework that enables you to concentrate on the higher
level details of the messages being communicated rather than the details
of the wire protocol. A nice option for the Google Android/App Engine
(iOS is also supported) platform is the Google Cloud Endpoints framework.
This
is
available
at https://cloud.google.com/products/
cloud-endpoints/ .
This is a well-rounded framework for implementing web services with
support for generating strongly typed server and client libraries that
simplify building the application. However, for our sample such a
framework adds a lot of machinery that tends to obscure the core functions
performed. Also, implementing a simple client/server protocol is a good
way to appreciate what these frameworks are trying to solve and why you
would want to use them in a production application. This section describes
the code that implements the client side of the simple protocol used in the
application.
Search WWH ::




Custom Search