Skip to Content
Learning Processing
book

Learning Processing

by Daniel Shiffman
April 2009
Intermediate to advanced content levelIntermediate to advanced
472 pages
11h 36m
English
Morgan Kaufmann
Content preview from Learning Processing
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 ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Learning Processing, 2nd Edition

Learning Processing, 2nd Edition

Daniel Shiffman
Interactive Lecturing

Interactive Lecturing

Elizabeth F. Barkley, Claire H. Major

Publisher Resources

ISBN: 9780080920061