Java Network Programming: Developing Networked Applications

Front Cover
"O'Reilly Media, Inc.", Oct 4, 2013 - Computers - 506 pages
1 Review

This practical guide provides a complete introduction to developing network programs with Java. You’ll learn how to use Java’s network class library to quickly and easily accomplish common networking tasks such as writing multithreaded servers, encrypting communications, broadcasting to the local network, and posting data to server-side programs.

Author Elliotte Rusty Harold provides complete working programs to illustrate the methods and classes he describes. This thoroughly revised fourth edition covers REST, SPDY, asynchronous I/O, and many other recent technologies.

  • Explore protocols that underlie the Internet, such as TCP/IP and UDP/IP
  • Learn how Java’s core I/O API handles network input and output
  • Discover how the InetAddress class helps Java programs interact with DNS
  • Locate, identify, and download network resources with Java’s URI and URL classes
  • Dive deep into the HTTP protocol, including REST, HTTP headers, and cookies
  • Write servers and network clients, using Java’s low-level socket classes
  • Manage many connections at the same time with the nonblocking I/O
 

What people are saying - Write a review

We haven't found any reviews in the usual places.

Contents

Chapter 1 Basic Network Concepts
1
Chapter 2 Streams
25
Chapter 3 Threads
53
Chapter 4 Internet Addresses
93
Chapter 5 URLs and URIs
119
Chapter 6 HTTP
171
Chapter 7 URLConnections
189
Chapter 8 Sockets for Clients
241
Chapter 9 Sockets for Servers
287
Chapter 10 Secure Sockets
329
Chapter 11 Nonblocking IO
351
Chapter 12 UDP
397
Chapter 13 IP Multicast
447
Index
469
About the Author
482
Copyright

Other editions - View all

Common terms and phrases

About the author (2013)

Elliotte Rusty Harold is originally from New Orleans to which he returns periodically in search of a decent bowl of gumbo. However, he currently resides in the Prospect Heights neighborhood of Brooklyn with his wife Beth, dog Shayna, and cat Marjorie (named after his mother-in-law). He's a frequent speaker at industry conferences including Software Development, Dr. Dobb's Architecure & Design World, SD Best Practices, Extreme Markup Languages, and too many user groups to count. His open source projects include the XOM Library for processing XML with Java and the Amateur media player.

Bibliographic information