September 2015
Beginner
564 pages
13h 28m
English
I’m mad as hell and I’m not going to take this anymore!
—Howard Beale, Network
In this chapter:
– Sockets
– Servers
– Clients
– Multi-user processing
– Serial communication
In this chapter, I will use the Processing network library to create sketches that talk to each other in real-time. Examples of this are multi-user applications such as games, instant messenger, and chat (among other things).
In Chapter 18, I looked at how you can request the raw source of a URL using loadStrings(), loadXML(), and loadJSON(). You make the request, sit back, and await the results. You may have noticed that this process does not happen instantaneously. Sometimes the program may pause for seconds (or even minutes) while a document ...