Skip to content

TCP/IP Sockets in Java Practical Guide for Programmers

Best in textbook rentals since 2012!

ISBN-10: 0123742552

ISBN-13: 9780123742551

Edition: 2nd 2008

Authors: Kenneth L. Calvert, Michael J. Donahoo

List price: $30.95
Blue ribbon 30 day, 100% satisfaction guarantee!
Rent eBooks
what's this?
Rush Rewards U
Members Receive:
Carrot Coin icon
XP icon
You have reached 400 XP and carrot coins. That is the daily max!

Description:

Nearly all Internet applications use sockets to implement network communication protocols. When TCP/IP Sockets was first released, Java was still emerging as a new but untreated programming language. However, the networking capabilities of the Java platform (such as its adoption into wireless Bluetooth devices) have been extended considerably since 2001, and continued application advances have made it a predominant language, which now holds the market penetration lead at 45%. Taking into account Java's categorical popularity as well as those recent and electrifying innovations in both its form and functions, this 2nd editions covers several crucial new classes of the language that are…    
Customers also bought

Book details

List price: $30.95
Edition: 2nd
Copyright year: 2008
Publisher: Elsevier Science & Technology Books
Publication date: 2/8/2008
Binding: Paperback
Pages: 192
Size: 7.50" wide x 9.25" long x 0.75" tall
Weight: 0.836
Language: English

Preface
Introduction
Networks, Packets, and Protocols
About Addresses
About Names
Clients and Servers
What Is a Socket?
Exercises
Basic Sockets
Socket Addresses
TCP Sockets
TCP Client
TCP Server
Input and Output Streams
UDP Sockets
DatagramPacket
UDP Client
UDP Server
Sending and Receiving with UDP Sockets
Exercises
Sending and Receiving Data
Encoding Information
Primitive Integers
Strings and Text
Bit-Diddling: Encoding Booleans
Composing I/O Streams
Framing and Parsing
Java-Specific Encodings
Constructing and Parsing Protocol Messages
Text-Based Representation
Binary Representation
Sending and Receiving
Wrapping Up
Exercises
Beyond the Basics
Multitasking
Java Threads
Server Protocol
Thread-per-Client
Thread Pool
System-Managed Dispatching: The executor Interface
Blocking and Timeouts
accept(), read(), and receive()
Connecting and Writing
Limiting Per-Client Time
Multiple Recipients
Broadcast
Multicast
Controlling Default Behaviors
Keep-Alive
Send and Receive Buffer Size
Timeout
Address Reuse
Eliminating Buffering Delay
Urgent Data
Lingering after Close
Broadcast Permission
Traffic Class
Performance-Based Protocol Selection
Closing Connections
Applets
Wrapping Up
Exercises
Nio
Why Do We Need This?
Using Channels with Buffers
Selectors
Buffers in Detail
Buffer Indices
Buffer Creation
Storing and Retrieving Data
Preparing Buffers: clear(), flip(), and rewind()
Compacting data in a Buffer
Buffer Perspectives: duplicate(), slice(), etc.
Character Coding
Stream (TCP) Channels in Detail
Selectors in Detail
Registering Interest in Channels
Selecting and Identifying Ready Channels
Channel Attachments
Selectors in a Nutshell
Datagram (UDP) Channels
Exercises
Under the Hood
Buffering and TCP
Deadlock Danger
Performance Implications
TCP Socket Life Cycle
Connecting
Closing a TCP Connection
Demultiplexing Demystified
Exercises
Bibliography
Index