
Communicating in
(Near) Real Time
So far, all of the networked communications you’ve seen worked like a
Web browser. Your object made a request to a remote server, the server
ran a program and then sent a response. This transaction worked by
making a connection to the web server, exchanging some information,
then breaking the connection. In this chapter, you’ll learn more about
that connection, and you’ll write a server program that allows you
to maintain the connection in order to facilitate a faster and more
consistent exchange between the server and client.
5
MAKE: PROJECTS
Musicbox by Jin-Yo Mok (2004)
The music box is connected to a composition program over the Internet using a serial-to-ethernet module. The
composition program changes the lights on the music box and the sounds it will play. Real time communication
between the two in order to give the player feedback on what he is playing. Photo courtesy of Jin-Yo Mok.
Making_Things_Talk.indb 147 11/13/09 4:53 PM