Fundamental Networking in Java

  • Authors
  • Esmond Pitt

Table of contents

  1. Front Matter
    Pages i-xviii
  2. Introduction to Networking

    1. Pages 3-6
  3. IP—Internet Protocol

    1. Pages 9-16
  4. TCP—Transmission Control Protocol

    1. Pages 19-71
    2. Pages 73-116
    3. Pages 117-128
    4. Pages 129-134
    5. Pages 135-183
    6. Pages 185-213
  5. UDP—User Datagram Protocol

    1. Pages 217-259
    2. Pages 261-268
    3. Pages 269-295
  6. In Practice

  7. Back Matter
    Pages 349-381

About this book

Introduction

This book is an in-depth learning and teaching resource for the understanding and programming of TCP/IP networking in Java. It covers 'everything you can do to a socket in Java' and explains when and why you might - or might not - want to do that. It is addressed both to professional programmers and college students in first or second year networking courses.

The book covers TCP and UDP using both blocking streams and non-blocking channels, and also SSL secure sockets in both blocking and non-blocking modes, unravelling the mysteries of the SSLEngine in the process. Particular attention is paid to the neglected topics of multi-homing and multicast. A unique chapter on client and server architectures uses a quantitative approach rather than the usual design-patterns approach, leading to architectures with predictable performance rather than just coding elegance.

All you need to know about:

- Using Streams and Sockets for blocking TCP/IP

- Using Buffers and Channels for non-blocking and multiplexed TCP/IP and UDP

- Designing servers for scalability and predictable performance

- Working with blocking TLS/SSL using Streams and SSLSockets

- Unlocking the mysteries of non-blocking TLS/SSL with the JDK 1.5 SSLEngine

- Using DatagramSockets and DatagramPackets for blocking UDP and multicasting

- Outlining special programming considerations for multihomed hosts

- Managing the transition from IPv4 to IPv6 in Java

Features:

- Extensive Java index

- Accompanying [SVL] website XXXXX with source code download

- Comprehensive code samples and some exercises.

Esmond Pitt is a Melbourne consultant and author with a distinguished 28-year international career in the design and implementation of systems software products. A well-known Java advisor, he has published a book on Java RMI, and is a member of Sun's Expert Group on Distributed Real-time Java. His IT practice encompasses compiler construction, networking, and security. He is a Fellow of the Australian Computer Society.

I was an early reviewer of this book and I admire its economical and thorough but eminently readable style, lucidly describing complex issues without ever outstaying its welcome. This book combines academic rigour with a practical approach deeply informed by real-world experience and I have no hesitation in recommending it to developers of all experience levels. Experienced engineers building network-centric infrastructure or services should not be without this book. In fact, any Java developer building distributed applications such as J2EE, Jini, and Web Services should read this book — at least to understand the fundamental implications of networking on application design and implementation.

 

Michael Geisler, Sun Microsystems

Keywords

Client Mode Firewall Host Internet Java Socket TCP/IP Unicast datagram programming tools

Bibliographic information

  • DOI https://doi.org/10.1007/1-84628-252-7
  • Copyright Information Esmond Pitt 2006
  • Publisher Name Springer, London
  • eBook Packages Computer Science
  • Print ISBN 978-1-84628-030-6
  • Online ISBN 978-1-84628-252-2
  • About this book