Skip to main content

Talking to the Server

  • Chapter
  • 1642 Accesses

Abstract

After reading the previous chapter, you are ready to create a game server and provide a decent infrastructure around it with templates, error handling, and logging. To build a real multiplayer application, however, a server is not enough. The second essential part of the networking architecture is the client. The goal of this chapter is to provide a good level of knowledge of networking from the client’s perspective. In order to do that, we will learn the following:

  • How to load the data from the server without having to reload a web page

  • A newer version of the XMLHttpRequest object called XHR Level 2

  • How to load binary data from the server and parse it on the client side

  • The limitations of mobile devices

  • A few things about reverse Ajax and the options available to implement real-time client-server communication

  • The definition of a transport and the types of trade-ofts involved when a developer chooses a transport for his game

This is a preview of subscription content, log in via an institution.

Buying options

Chapter
USD   29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD   34.99
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD   44.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Learn about institutional subscriptions

Preview

Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

Authors

Rights and permissions

Reprints and permissions

Copyright information

© 2012 Juriy Bura and Paul Coates

About this chapter

Cite this chapter

Bura, J. (2012). Talking to the Server. In: Pro Android Web Game Apps. Apress, Berkeley, CA. https://doi.org/10.1007/978-1-4302-3820-1_11

Download citation

Publish with us

Policies and ethics