Learning Network Programming with Java

Harness the hidden power of Java to build network-enabled applications with lower network traffic and faster processes

Learning Network Programming with Java

Learning
Richard M Reese

2 customer reviews
Harness the hidden power of Java to build network-enabled applications with lower network traffic and faster processes
$39.99
$49.99
RRP $39.99
RRP $49.99
eBook
Print + eBook

Instantly access this course right now and get the skills you need in 2017

With unlimited access to a constantly growing library of over 4,000 eBooks and Videos, a subscription to Mapt gives you everything you need to get that next promotion or to land that dream job. Cancel anytime.

Free Sample

Book Details

ISBN 139781785885471
Paperback292 pages

Book Description

Network-aware applications are becoming more prevalent and play an ever-increasing role in the world today. Connecting and using an Internet-based service is a frequent requirement for many applications. Java provides numerous classes that have evolved over the years to meet evolving network needs. These range from low-level socket and IP-based approaches to those encapsulated in software services.

This book explores how Java supports networks, starting with the basics and then advancing to more complex topics. An overview of each relevant network technology is presented followed by detailed examples of how to use Java to support these technologies.

We start with the basics of networking and then explore how Java supports the development of client/server and peer-to-peer applications. The NIO packages are examined as well as multitasking and how network applications can address practical issues such as security.

A discussion on networking concepts will put many network issues into perspective and let you focus on the appropriate technology for the problem at hand. The examples used will provide a good starting point to develop similar capabilities for many of your network needs.

Table of Contents

Chapter 1: Getting Started with Network Programming
Network addressing using the InetAddress class
NIO support
The client/server architecture
Creating a simple echo server
UDP and multicasting
Scalability
Security
Summary
Chapter 2: Network Addressing
Networking basics
Using the NetworkInterface class
Network addressing concepts
Controlling network properties
Summary
Chapter 3: NIO Support for Networking
Java NIO
Introduction to buffers
Using channels with a time server
The chat server/client applications
Handling multiple clients
Asynchronous socket channels
Other buffer operations
Controlling socket options
Summary
Chapter 4: Client/Server Development
The HTTP protocol structure
The nature of HTTP messages
Java socket support for HTTP client/server applications
Client/server development using standard Java classes
Open source Java HTTP servers
Server configuration
Handling cookies
Summary
Chapter 5: Peer-to-Peer Networks
P2P functions/characteristics
Applications-based P2P networks
Java support for P2P applications
Distributed hash tables
Using FreePastry
Summary
Chapter 6: UDP and Multicasting
Java support for UDP
TCP versus UDP
UDP client/server
Channel support for UDP
UDP multicasting
UDP multicasting with channels
UDP streaming
Summary
Chapter 7: Network Scalability
Multithreaded server overview
The thread-per-request approach
Thread-per-connection approach
Thread pools
Using the HttpServer executor
Using a selector
Handling network timeouts
Summary
Chapter 8: Network Security
Security
Encryption basics
Creating a keystore
Symmetric encryption client/server
Asymmetric encryption client/server
TLS/SSL
Secure hash functions
Summary
Chapter 9: Network Interoperability
Byte order in Java
Interfacing with other languages
Communication through simple sockets
Interoperability through middleware
Summary

What You Will Learn

  • Connect to other applications using sockets
  • Use channels and buffers to enhance communication between applications
  • Access network services and develop client/server applications
  • Explore the critical elements of peer-to-peer applications and current technologies available
  • Use UDP to perform multicasting
  • Address scalability through the use of core and advanced threading techniques
  • Incorporate techniques into an application to make it more secure
  • Configure and address interoperability issues to enable your applications to work in a heterogeneous environment

Authors

Table of Contents

Chapter 1: Getting Started with Network Programming
Network addressing using the InetAddress class
NIO support
The client/server architecture
Creating a simple echo server
UDP and multicasting
Scalability
Security
Summary
Chapter 2: Network Addressing
Networking basics
Using the NetworkInterface class
Network addressing concepts
Controlling network properties
Summary
Chapter 3: NIO Support for Networking
Java NIO
Introduction to buffers
Using channels with a time server
The chat server/client applications
Handling multiple clients
Asynchronous socket channels
Other buffer operations
Controlling socket options
Summary
Chapter 4: Client/Server Development
The HTTP protocol structure
The nature of HTTP messages
Java socket support for HTTP client/server applications
Client/server development using standard Java classes
Open source Java HTTP servers
Server configuration
Handling cookies
Summary
Chapter 5: Peer-to-Peer Networks
P2P functions/characteristics
Applications-based P2P networks
Java support for P2P applications
Distributed hash tables
Using FreePastry
Summary
Chapter 6: UDP and Multicasting
Java support for UDP
TCP versus UDP
UDP client/server
Channel support for UDP
UDP multicasting
UDP multicasting with channels
UDP streaming
Summary
Chapter 7: Network Scalability
Multithreaded server overview
The thread-per-request approach
Thread-per-connection approach
Thread pools
Using the HttpServer executor
Using a selector
Handling network timeouts
Summary
Chapter 8: Network Security
Security
Encryption basics
Creating a keystore
Symmetric encryption client/server
Asymmetric encryption client/server
TLS/SSL
Secure hash functions
Summary
Chapter 9: Network Interoperability
Byte order in Java
Interfacing with other languages
Communication through simple sockets
Interoperability through middleware
Summary

Book Details

ISBN 139781785885471
Paperback292 pages
Read More
From 2 reviews

Read More Reviews