O'Reilly logo

Learning Processing 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

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.

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 request/response protocol ...

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