Preface
1. Basic Network Concepts
Networks
The Layers of a Network
The Host-to-Network Layer
The Internet Layer
The Transport Layer
The Application Layer
IP, TCP, and UDP
IP Addresses and Domain Names
Ports
The Internet
Internet Address Blocks
Network Address Translation
FirewaUs
Proxy Servers
The Client/Server Model
Internet Standards
IETF RFCs
W3C Recommendations
2. Streams
Output Streams
Input Streams
Marking and Resetting
Filter Streams
Chaining Filters Together
Buffered Streams
PrintStream
Data Streams
Readers and Writers
Writers
OutputStreamWriter
Readers
Filter Readers and Writers
PrintWriter
3. Threads
Running Threads
Subclassing Thread
Implementing the Runnable Interface
Returning Information from a Thread
Race Conditions
Polling
Callbacks
Futures, Callables, and Executors
Synchronization
Synchronized Blocks
Synchronized Methods
Alternatives to Synchronization
Deadlock
Thread Scheduling
Priorities
Preemption
Thread Pools and Executors
4. Internet Addresses
The InetAddress Class
Creating New InetAddress Objects
Getter Methods
Address Types
Testing Reachability
Object Methods
Inet4Address and Inet6Address
The NetworkInterface Class
Factory Methods
Getter Methods
Some Useful Programs
SpamCheck
5. URLs and URIs
6. HTTP
7. URLConnections
8. Sockets for Clients
9. Sockets for Servers
10. Secure Sockets
11. Nonblocking I/O
12. UDP
13. IP Multicast
Index
^ 收 起