Java网络编程 影印版 第四版 作者: (美)Elliotte Rusty Harold(哈诺德,R.E.)著 出版时间:2014 内容简介 《Java网络编程(影印版 第4版)》实用指南完整介绍了基于Java开发网络程序。你将了解到如何使用Java的网络类库来快速简便地完成常见的网络任务,比如编写多线程服务器、加密通信、在局域网进行广播和发送数据到服务器端程序。 目录 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