O'Reilly logo

Learning Processing, 2nd Edition by Daniel Shiffman

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

19

Data Streams

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

19-1 Network 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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required