TCP/IP Sockets in Java: Practical Guide for Programmers

Calvert, Kenneth L.; Donahoo, Michael J.

In stock
Regular price 12.000 KD inc. VAT
License
Table of contents
  • Cover
  • Copyright Pageiv
  • Contentsvii
  • Prefaceix
  • Chapter 1. Introduction1
  • 1.1 Networks, Packets, and Protocols1
  • 1.2 About Addresses3
  • 1.3 About Names4
  • 1.4 Clients and Servers5
  • 1.5 What Is a Socket?6
  • 1.6 Exercises6
  • Chapter 2. Basic Sockets9
  • 2.1 Socket Addresses9
  • 2.2 TCP Sockets12
  • 2.3 UDP Sockets23
  • 2.4 Exercises34
  • Chapter 3. Sending and Receiving Messages37
  • 3.1 Encoding Information39
  • 3.2 Composing I/O Streams42
  • 3.3 Framing and Parsing42
  • 3.4 Implementing Wire Formats in Java46
  • 3.5 Wrapping Up58
  • 3.6 Exercises59
  • Chapter 4. Beyond the Basics61
  • 4.1 Multitasking61
  • 4.2 Nonblocking I/O75
  • 4.3 Multiple Recipients79
  • 4.4 Socket Options84
  • 4.5 Closing Connections85
  • 4.6 Applets91
  • 4.7 Wrapping Up91
  • 4.8 Exercises91
  • Chapter 5. Under the Hood93
  • 5.1 Buffering and TCP95
  • 5.2 Buffer Deadlock97
  • 5.3 Performance Implications100
  • 5.4 TCP Socket Life Cycle100
  • 5.5 Demultiplexing Demysti.ed107
  • 5.6 Exercises109
  • Bibliography111
  • Index113
Book details
  • Vendor Elsevier S & T
  • SKU 9781558606852
  • ISBN-13 9780080518480
  • Author Calvert, Kenneth L.; Donahoo, Michael J.
  • Category Computers
  • Subject Network Protocols

Do you have questions about this book?

Ask an expert!


Most Internet applications use sockets to implement network communication protocols. TCP/IP Sockets in Java: Practical Guide for Programmers, with its focused, tutorial-based coverage, helps you master the tasks and techniques essential to virtually all client-server projects using sockets in Java. Later chapters teach you to implement more specialized functionality; incisive discussions of programming constructs and protocol implementations equip you with a deeper understanding that is invaluable for meeting future challenges. No other resource presents so concisely or so effectively the exact material you need to get up and running with Java sockets programming right away.


For those who program using the C language, be sure to check out this book's companion, TCP/IP Sockets in C: Practical Guide for Programmers.


For example code from the text, sample programming exercises, Powerpoint slides, and more, click on the grey "Companion Site" button to the right.



*Concise, no-nonsense explanations of issues often troublesome for students, including message construction and parsing, underlying mechanisms and Java I/O
*Comprehensive example-based coverage of the most important TCP/IP techniques-including iterative and threaded servers, timeouts and asynchronous message processing
*Includes a detailed, easy-to-use reference to the relevant JAVA class libraries
*A companion Web site provides online code for all the example programs given in the book
*Provides a guide to common errors and a reference offering detailed documentation of the sockets interface
*Perfect for a practitioner who may even want just to "look into" this technology.
*Provides tutorial-based instuction in key sockets programming techniques, focusing exclusively on Jva and complemented by example code.
*Covers challenging sockets programming issues: message construction and parsing, underlying TCP/IP protocol mechanisms, Java I/O, iterate and threaded servers, and timeouts.
*Includes references to the relevant Java class libraries that often go beyond the "official" Java documentation in clarity and explanation.
*Provides code for all example programs, along with additional exercises, via companion Web site.