Jump to ratings and reviews
Rate this book

TCP/IP Sockets in Java: Practical Guide for Programmers

Rate this book
The networking capabilities of the Java platform have been extended considerably since the first edition of the book. This new edition covers version 1.5-1.7, the most current iterations, as well as making the following improvements:

The API (application programming interface) reference sections in each chapter, which describe the relevant parts of each class, have been replaced with (i) a summary section that lists the classes and methods used in the code, and (ii) a ?gotchas? section that mentions nonobvious or poorly-documented aspects of the objects.

In addition, the book covers several new classes and capabilities introduced in the last few revisions of the Java platform. New abstractions to be covered include NetworkInterface, InterfaceAddress, Inet4/6Address, SocketAddress/InetSocketAddress, Executor, and others; extended access to low-level network information; support for IPv6; more complete access to socket options; and scalable I/O. The example code is also modified to take advantage of new language features such as annotations, enumerations, as well as generics and implicit iterators where appropriate.

Most Internet applications use sockets to implement network communication protocols. This book's focused, tutorial-based approach helps the reader master the tasks and techniques essential to virtually all client-server projects using sockets in Java. Chapter 1 provides a genral overview of networking concepts to allow readers to synchronize the concepts with terminology. Chapter 2 introduces the mechanics of simple clients and servers. Chapter 3 covers basic message construction and parsing. Chapter 4 then deals with techniques used to build more robust clients and servers. Chapter 5 (NEW) introduces the scalable interface facilities which were introduced in Java 1.5, including the buffer and channel abstractions. Chapter 6 discusses the relationship between the programming constructs and the underlying protocol implementations in more detail. Programming concepts are introduced through simple program examples accompanied by line-by-line code commentary that describes the purpose of every part of the program. The book's Web site contains many examples of command-based sockets-related code discussed throughout the book. No other resource presents so concisely or so effectively the material necessary to get up and running with Java sockets programming.

KEY FEATURES

* Focused, tutorial-based instruction in key sockets programming techniques allows reader to quickly come up to speed on Java applications.
* Concise and up-to-date coverage of the most recent platform (1.7) for Java
applications in networking technology
* Provides code for all example programs via a companion Web site to let the reader see the important objects and methods in context and to understand the purpose of each line of code.

192 pages, Kindle Edition

First published January 1, 2001

6 people are currently reading
43 people want to read

About the author

Ratings & Reviews

What do you think?
Rate this book

Friends & Following

Create a free account to discover what your friends think of this book!

Community Reviews

5 stars
6 (24%)
4 stars
8 (32%)
3 stars
8 (32%)
2 stars
3 (12%)
1 star
0 (0%)
Displaying 1 - 4 of 4 reviews
Profile Image for Khanh Cao.
34 reviews2 followers
December 6, 2022
Practical guide, clear explanation. The only drawback is the Java version is too old (less than Java 8 - which is widely the standard now), making many example implementations wrong/too verbose sometimes.
Profile Image for Dmytro Chaban.
46 reviews2 followers
February 25, 2017
Awesome book that can help you refresh skills in sockets and also acquire some new knowledge. I guess you can read this book if you tried to play with sockets by yourself and you want more deep knowledge. Still, this book is not a "recipe for all". There's no answer for "How to create multiplayer high performance game based on sockets", but you can combine knowledge from this book to find the answer.
Profile Image for Marshall Vandegrift.
105 reviews2 followers
July 11, 2011
I was hoping I was just missing something about how painful Java network programming seems to be (even the NIO API), but unless this book is just full of lies, apparently not. I'm also definitely not the book's target audience (way too much into material), but that's not really its fault.
Displaying 1 - 4 of 4 reviews

Can't find what you're looking for?

Get help and learn more about the design.