Java Network Programming - Elliotte Rusty Harold

Java Network Programming

Developing Networked Applications
Buch | Softcover
502 Seiten
2013 | 4th Revised edition
O'Reilly Media, Inc, USA (Verlag)
978-1-4493-5767-2 (ISBN)
49,35 inkl. MwSt
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

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.

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

Zusatzinfo black & white illustrations
Verlagsort Sebastopol
Sprache englisch
Maße 178 x 233 mm
Gewicht 793 g
Einbandart kartoniert
Themenwelt Mathematik / Informatik Informatik Netzwerke
Informatik Programmiersprachen / -werkzeuge Java
Informatik Software Entwicklung Objektorientierung
Mathematik / Informatik Informatik Web / Internet
ISBN-10 1-4493-5767-9 / 1449357679
ISBN-13 978-1-4493-5767-2 / 9781449357672
Zustand Neuware
Haben Sie eine Frage zum Produkt?
Mehr entdecken
aus dem Bereich
mit über 150 Workouts in Java und Python

von Luigi Lo Iacono; Stephan Wiefling; Michael Schneider

Buch (2023)
Carl Hanser (Verlag)
29,99
Einführung, Ausbildung, Praxis

von Christian Ullenboom

Buch | Hardcover (2023)
Rheinwerk (Verlag)
49,90