Chapter 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 input.

19.1 Synchronous vs. Asynchronous

In Chapter 18, we looked at how we can request the raw source of a URL using loadStrings(), the simpleML library, or the XML library. 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 web page or XML document loads. This is due to the length of time required for what Processing performs behind the scenes—an HTTP request. HTTP stands for “Hypertext Transfer Protocol,” a ...

Get Learning Processing now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.