Publisher: O'Reilly Media
Final Release Date: October 2013
Pages: 506
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
|
-
Chapter 1 Basic Network Concepts -
Networks -
The Layers of a Network -
IP, TCP, and UDP -
The Internet -
The Client/Server Model -
Internet Standards -
Chapter 2 Streams -
Output Streams -
Input Streams -
Filter Streams -
Readers and Writers -
Chapter 3 Threads -
Running Threads -
Returning Information from a Thread -
Synchronization -
Deadlock -
Thread Scheduling -
Thread Pools and Executors -
Chapter 4 Internet Addresses -
The InetAddress Class -
Inet4Address and Inet6Address -
The NetworkInterface Class -
Some Useful Programs -
Chapter 5 URLs and URIs -
URIs -
The URL Class -
The URI Class -
x-www-form-urlencoded -
Proxies -
Communicating with Server-Side Programs Through GET -
Accessing Password-Protected Sites -
Chapter 6 HTTP -
The Protocol -
HTTP Methods -
The Request Body -
Cookies -
Chapter 7 URLConnections -
Opening URLConnections -
Reading Data from a Server -
Reading the Header -
Caches -
Configuring the Connection -
Configuring the Client Request HTTP Header -
Writing Data to a Server -
Security Considerations for URLConnections -
Guessing MIME Media Types -
HttpURLConnection -
Chapter 8 Sockets for Clients -
Using Sockets -
Constructing and Connecting Sockets -
Getting Information About a Socket -
Setting Socket Options -
Socket Exceptions -
Sockets in GUI Applications -
Chapter 9 Sockets for Servers -
Using ServerSockets -
Logging -
Constructing Server Sockets -
Getting Information About a Server Socket -
Socket Options -
HTTP Servers -
Chapter 10 Secure Sockets -
Secure Communications -
Creating Secure Client Sockets -
Choosing the Cipher Suites -
Event Handlers -
Session Management -
Client Mode -
Creating Secure Server Sockets -
Configuring SSLServerSockets -
Chapter 11 Nonblocking I/O -
An Example Client -
An Example Server -
Buffers -
Channels -
Readiness Selection -
Chapter 12 UDP -
The UDP Protocol -
UDP Clients -
UDP Servers -
The DatagramPacket Class -
The DatagramSocket Class -
Socket Options -
Some Useful Applications -
DatagramChannel -
Chapter 13 IP Multicast -
Multicasting -
Working with Multicast Sockets -
Two Simple Examples -
Index -
Colophon |
- Title:
- Java Network Programming, 4th Edition
- By:
- Elliotte Rusty Harold
- Publisher:
- O'Reilly Media
- Formats:
-
- Print
- Ebook
- Safari Books Online
- Print:
- October 2013
- Ebook:
- October 2013
- Pages:
- 506
- Print ISBN:
- 978-1-4493-5767-2
- | ISBN 10:
- 1-4493-5767-9
- Ebook ISBN:
- 978-1-4493-5766-5
- | ISBN 10:
- 1-4493-5766-0
|
-
Elliotte Rusty Harold 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 and dog Thor. He's a frequent speaker at industry conferences including Software Development, Dr. Dobb's Architecture & 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. View Elliotte Rusty Harold's full profile page. |
Colophon The animal on the cover of Java Network Programming, 4th Edition, is a North American river otter (Lutra canadensis). These small carnivores are found in all major waterways of the United States and Canada, and in almost every habitat except the tundra and the hot, dry regions of the southwestern United States. They weigh about 20 pounds and are approximately two and a half feet long, and females tend to be about a third smaller than males. Their diet consists mainly of aquatic animals like fish and frogs, but since they spend about two-thirds of their time on land, they also eat the occasional bird or rodent. Two layers of fur—a coarse outer coat and a thick, dense inner coat—protect a river otter from the cold, and, in fact, they seem to enjoy playing in snow and ice. When diving, a river otter’s pulse rate slows to only 20 beats per minute from its normal 170, conserving oxygen and allowing the otter to stay underwater longer. These animals are sociable and domesticated easily, and in Europe, a related species was once trained to catch fish for people to eat. |
|
Table of Contents
|
Product Details
|
About the Author
|
Colophon
|
 |
|
 |
|
|
|
Recommended for You
|
Recently Viewed
|
 |
|
By Elliotte Rusty Harold
July 2013
Ebook
:
$11.99
Print & Ebook
:
$14.29
Print
:
$12.99
|
Customer Reviews
12/4/2013 (1 of 1 customers found this review helpful) 5.0Extensive Book for Java Network By tribalia from Bucharest, Romania - Accurate
- Concise
- Easy to understand
- Helpful examples
- Well-written
11/13/2013 (6 of 7 customers found this review helpful) 5.0a must read for Java Network development - Accurate
- Easy to understand
- Helpful examples
- Well-written
|
|
|