更新时间:2021-08-20 10:41:51
封面
版权页
Credits
About the Author
About the Reviewer
www.PacktPub.com
Support files eBooks discount offers and more
Preface
What this book covers
What you need for this book
Who this book is for
Conventions
Reader feedback
Customer support
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
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
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
Chapter 5. Peer-to-Peer Networks
P2P functions/characteristics
Applications-based P2P networks
Java support for P2P applications
Distributed hash tables
Using FreePastry
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
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
Chapter 8. Network Security
Encryption basics
Creating a keystore
Symmetric encryption client/server
Asymmetric encryption client/server
TLS/SSL
Secure hash functions
Chapter 9. Network Interoperability
Byte order in Java
Interfacing with other languages
Communication through simple sockets
Interoperability through middleware
Index