Java Network Programming

Overview

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

See more details below
Paperback (Fourth Edition)
$30.34
BN.com price
(Save 39%)$49.99 List Price

Pick Up In Store

Reserve and pick up in 60 minutes at your local store

Other sellers (Paperback)
  • All (13) from $27.11   
  • New (10) from $27.11   
  • Used (3) from $27.12   
Java Network Programming

Available on NOOK devices and apps  
  • NOOK Devices
  • NOOK HD/HD+ Tablet
  • NOOK
  • NOOK Color
  • NOOK Tablet
  • Tablet/Phone
  • NOOK for Windows 8 Tablet
  • NOOK for iOS
  • NOOK for Android
  • NOOK Kids for iPad
  • PC/Mac
  • NOOK for Windows 8
  • NOOK for PC
  • NOOK for Mac
  • NOOK Study
  • NOOK for Web

Want a NOOK? Explore Now

NOOK Book (eBook)
$15.49
BN.com price
(Save 44%)$27.99 List Price

Overview

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
Read More Show Less

Product Details

  • ISBN-13: 9781449357672
  • Publisher: O'Reilly Media, Incorporated
  • Publication date: 10/15/2013
  • Edition description: Fourth Edition
  • Edition number: 4
  • Pages: 502
  • Sales rank: 425,472
  • Product dimensions: 6.90 (w) x 9.10 (h) x 1.10 (d)

Meet the Author

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.

Read More Show Less

Table of Contents

Dedication;
Preface;
About the Fourth Edition;
Organization of the Book;
Who You Are;
Java Versions;
About the Examples;
Conventions Used in This Book;
Request for Comments;
Using Code Examples;
Safari® Books Online;
How to Contact Us;
Acknowledgments;
Chapter 1: Basic Network Concepts;
1.1 Networks;
1.2 The Layers of a Network;
1.3 IP, TCP, and UDP;
1.4 The Internet;
1.5 The Client/Server Model;
1.6 Internet Standards;
Chapter 2: Streams;
2.1 Output Streams;
2.2 Input Streams;
2.3 Filter Streams;
2.4 Readers and Writers;
Chapter 3: Threads;
3.1 Running Threads;
3.2 Returning Information from a Thread;
3.3 Synchronization;
3.4 Deadlock;
3.5 Thread Scheduling;
3.6 Thread Pools and Executors;
Chapter 4: Internet Addresses;
4.1 The InetAddress Class;
4.2 Inet4Address and Inet6Address;
4.3 The NetworkInterface Class;
4.4 Some Useful Programs;
Chapter 5: URLs and URIs;
5.1 URIs;
5.2 The URL Class;
5.3 The URI Class;
5.4 x-www-form-urlencoded;
5.5 Proxies;
5.6 Communicating with Server-Side Programs Through GET;
5.7 Accessing Password-Protected Sites;
Chapter 6: HTTP;
6.1 The Protocol;
6.2 HTTP Methods;
6.3 The Request Body;
6.4 Cookies;
Chapter 7: URLConnections;
7.1 Opening URLConnections;
7.2 Reading Data from a Server;
7.3 Reading the Header;
7.4 Caches;
7.5 Configuring the Connection;
7.6 Configuring the Client Request HTTP Header;
7.7 Writing Data to a Server;
7.8 Security Considerations for URLConnections;
7.9 Guessing MIME Media Types;
7.10 HttpURLConnection;
Chapter 8: Sockets for Clients;
8.1 Using Sockets;
8.2 Constructing and Connecting Sockets;
8.3 Getting Information About a Socket;
8.4 Setting Socket Options;
8.5 Socket Exceptions;
8.6 Sockets in GUI Applications;
Chapter 9: Sockets for Servers;
9.1 Using ServerSockets;
9.2 Logging;
9.3 Constructing Server Sockets;
9.4 Getting Information About a Server Socket;
9.5 Socket Options;
9.6 HTTP Servers;
Chapter 10: Secure Sockets;
10.1 Secure Communications;
10.2 Creating Secure Client Sockets;
10.3 Choosing the Cipher Suites;
10.4 Event Handlers;
10.5 Session Management;
10.6 Client Mode;
10.7 Creating Secure Server Sockets;
10.8 Configuring SSLServerSockets;
Chapter 11: Nonblocking I/O;
11.1 An Example Client;
11.2 An Example Server;
11.3 Buffers;
11.4 Channels;
11.5 Readiness Selection;
Chapter 12: UDP;
12.1 The UDP Protocol;
12.2 UDP Clients;
12.3 UDP Servers;
12.4 The DatagramPacket Class;
12.5 The DatagramSocket Class;
12.6 Socket Options;
12.7 Some Useful Applications;
12.8 DatagramChannel;
Chapter 13: IP Multicast;
13.1 Multicasting;
13.2 Working with Multicast Sockets;
13.3 Two Simple Examples;
Index;
Colophon;

Read More Show Less

Customer Reviews

Be the first to write a review
( 0 )
Rating Distribution

5 Star

(0)

4 Star

(0)

3 Star

(0)

2 Star

(0)

1 Star

(0)

Your Rating:

Your Name: Create a Pen Name or

Barnes & Noble.com Review Rules

Our reader reviews allow you to share your comments on titles you liked, or didn't, with others. By submitting an online review, you are representing to Barnes & Noble.com that all information contained in your review is original and accurate in all respects, and that the submission of such content by you and the posting of such content by Barnes & Noble.com does not and will not violate the rights of any third party. Please follow the rules below to help ensure that your review can be posted.

Reviews by Our Customers Under the Age of 13

We highly value and respect everyone's opinion concerning the titles we offer. However, we cannot allow persons under the age of 13 to have accounts at BN.com or to post customer reviews. Please see our Terms of Use for more details.

What to exclude from your review:

Please do not write about reviews, commentary, or information posted on the product page. If you see any errors in the information on the product page, please send us an email.

Reviews should not contain any of the following:

  • - HTML tags, profanity, obscenities, vulgarities, or comments that defame anyone
  • - Time-sensitive information such as tour dates, signings, lectures, etc.
  • - Single-word reviews. Other people will read your review to discover why you liked or didn't like the title. Be descriptive.
  • - Comments focusing on the author or that may ruin the ending for others
  • - Phone numbers, addresses, URLs
  • - Pricing and availability information or alternative ordering information
  • - Advertisements or commercial solicitation

Reminder:

  • - By submitting a review, you grant to Barnes & Noble.com and its sublicensees the royalty-free, perpetual, irrevocable right and license to use the review in accordance with the Barnes & Noble.com Terms of Use.
  • - Barnes & Noble.com reserves the right not to post any review -- particularly those that do not follow the terms and conditions of these Rules. Barnes & Noble.com also reserves the right to remove any review at any time without notice.
  • - See Terms of Use for other conditions and disclaimers.
Search for Products You'd Like to Recommend

Recommend other products that relate to your review. Just search for them below and share!

Create a Pen Name

Your Pen Name is your unique identity on BN.com. It will appear on the reviews you write and other website activities. Your Pen Name cannot be edited, changed or deleted once submitted.

 
Your Pen Name can be any combination of alphanumeric characters (plus - and _), and must be at least two characters long.

Continue Anonymously

    If you find inappropriate content, please report it to Barnes & Noble
    Why is this product inappropriate?
    Comments (optional)