图书介绍

Java网络编程 第4版PDF|Epub|txt|kindle电子书版本网盘下载

Java网络编程 第4版
  • Elliotte Rusty Harold著 著
  • 出版社: 南京:东南大学出版社
  • ISBN:9787564149604
  • 出版时间:2014
  • 标注页数:480页
  • 文件大小:58MB
  • 文件页数:501页
  • 主题词:JAVA语言-程序设计-英文

PDF下载


点此进入-本书在线PDF格式电子书下载【推荐-云解压-方便快捷】直接下载PDF格式图书。移动端-PC端通用
种子下载[BT下载速度快]温馨提示:(请使用BT下载软件FDM进行下载)软件下载地址页直链下载[便捷但速度慢]  [在线试读本书]   [在线获取解压码]

下载说明

Java网络编程 第4版PDF格式电子书版下载

下载的文件为RAR压缩包。需要使用解压软件进行解压得到PDF格式图书。

建议使用BT下载工具Free Download Manager进行下载,简称FDM(免费,没有广告,支持多平台)。本站资源全部打包为BT种子。所以需要使用专业的BT下载软件进行下载。如BitComet qBittorrent uTorrent等BT下载工具。迅雷目前由于本站不是热门资源。不推荐使用!后期资源热门了。安装了迅雷也可以迅雷进行下载!

(文件页数 要大于 标注页数,上中下等多册电子书除外)

注意:本站所有压缩包均有解压码: 点击下载压缩包解压工具

图书目录

1.Basic Network Concepts1

Networks2

The Layers of a Network4

The Host-to-Network Layer7

The Internet Layer8

The Transport Layer9

The Application Layer10

IP,TCP,and UDP10

IP Addresses and Domain Names11

Ports13

The Internet14

Internet Address Blocks15

Network Address Translation15

Firewalls15

Proxy Servers16

The Client/Server Model18

Internet Standards19

IETF RFCs20

W3C Recommendations22

2.Streams25

Output Streams26

Input Streams31

Marking and Resetting34

Filter Streams35

Chaining Filters Together37

Buffered Streams38

PrintStream39

Data Streams41

Readers and Writers44

Writers45

OutputStream Writer47

Readers47

Filter Readers and Writers49

PrintWriter51

3.Threads53

Running Threads55

Subclassing Thread56

Implementing the Runnable Interface58

Returning Information from a Thread60

Race Conditions61

Polling63

Callbacks63

Futures,Callables,and Executors68

Synchronization70

Synchronized Blocks72

Synchronized Methods74

Alternatives to Synchronization75

Deadlock77

Thread Scheduling78

Priorities78

Preemption79

Thread Pools and Executors89

4.Internet Addresses93

The InetAddress Class95

Creating New InetAddress Objects95

Getter Methods100

Address Types102

Testing Reachability106

Object Methods106

Inet4Address and Inet6Address107

The NetworkInterface Class108

Factory Methods108

Getter Methods110

Some Useful Programs111

SpamCheck111

Processing Web Server Logfiles112

5.URLs and URIs117

URIs117

URLs120

Relative URLs122

The URL Class123

Creating New URLs123

Retrieving Data from a URL128

Splitting a URL into Pieces135

Equality and Comparison139

Conversion141

The URI Class141

Constructing a URI142

The Parts of the URI144

Resolving Relative URIs147

Equality and Comparison148

String Representations149

x-www-form-urlencoded149

URLEncoder150

URLDecoder154

Proxies154

System Properties155

The Proxy Class155

The ProxySelector Class156

Communicating with Server-Side Programs Through GET157

Accessing Password-Protected Sites161

The Authenticator Class162

The PasswordAuthentication Class164

The JPasswordField Class164

6.HTTP169

The Protocol169

Keep-Alive175

HTTP Methods177

The Request Body179

Cookies181

CookieManager184

CookieStore185

7.URLConnections187

Opening URLConnections188

Reading Data from a Server189

Reading the Header190

Retrieving Specific Header Fields191

Retrieving Arbitrary Header Fields197

Caches199

Web Cache for Java203

Configuring the Connection208

protected URL url209

protected boolean connected209

protected boolean allowUserInteraction210

protected boolean doInput211

protected boolean doOutput212

protected boolean ifModifiedSince212

protected boolean useCaches214

Timeouts215

Configuring the Client Request HTTP Header215

Writing Data to a Server218

Security Considerations for URLConnections223

Guessing MIME Media Types224

HttpURLConnection224

The Request Method225

Disconnecting from the Server229

Handling Server Responses230

Proxies235

Streaming Mode235

8.Sockets for Clients237

Using Sockets237

Investigating Protocols with Telnet238

Reading from Servers with Sockets240

Writing to Servers with Sockets246

Constructing and Connecting Sockets251

Basic Constructors251

Picking a Local Interface to Connect From253

Constructing Without Connecting254

Socket Addresses255

Proxy Servers256

Getting Information About a Socket257

Closed or Connected?258

toString()259

Setting Socket Options259

TCP_NODELAY260

SO_LINGER261

SO_TIMEOUT261

SO_RCVBUF and SO_SNDBUF262

SO_KEEPALIVE263

OOBINLINE264

SO_REUSEADDR265

IP_TOS Class of Service265

Socket Exceptions267

Sockets in GUI Applications268

Whois269

A Network Client Library272

9.Sockets for Servers283

Using ServerSockets283

Serving Binary Data288

Multithreaded Servers289

Writing to Servers with Sockets293

Closing Server Sockets295

Logging297

What to Log297

How to Log298

Constructing Server Sockets302

Constructing Without Binding304

Getting Information About a Server Socket305

Socket Options306

SO_TIMEOUT307

SO_REUSEADDR308

SO_RCVBUF308

Class of Service309

HTTP Servers309

A Single-File Server310

A Redirector314

A Full-Fledged HTTP Server319

10.Secure Sockets325

Secure Communications326

Creating Secure Client Sockets328

Choosing the Cipher Suites332

Event Handlers336

Session Management336

Client Mode338

Creating Secure Server Sockets339

Configuring SSLServerSockets343

Choosing the Cipher Suites343

Session Management344

Client Mode344

11.Nonblocking I/O347

An Example Client349

An Example Server353

Buffers359

Creating Buffers361

Filling and Draining363

Bulk Methods364

Data Conversion365

View Buffers368

Compacting Buffers370

Duplicating Buffers372

Slicing Buffers376

Marking and Resetting377

Object Methods377

Channels378

SocketChannel378

ServerSocketChannel381

The Channels Class383

Asynchronous Channels(Java 7)384

Socket Options(Java 7)386

Readiness Selection388

The Selector Class388

The SelectionKey Class390

12.UDP393

The UDP Protocol393

UDP Clients395

UDP Servers397

The DatagramPacket Class399

The Constructors401

The get Methods403

The setter Methods406

The DatagramSocket Class408

The Constructors409

Sending and Receiving Datagrams411

Managing Connections416

Socket Options417

SO_TIMEOUT417

SO_RCVBUF418

SO_SNDBUF419

SO_REUSEADDR419

SO_BROADCAST419

IP_TOS420

Some Useful Applications421

Simple UDP Clients421

UDPServer425

A UDP Echo Client428

DatagramChannel431

Using DatagramChannel431

13.IP Multicast443

Multicasting444

Multicast Addresses and Groups447

Clients and Servers450

Routers and Routing452

Working with Multicast Sockets453

The Constructors454

Communicating with a Multicast Group455

Two Simple Examples460

Index465

热门推荐