Java network programming / Elliotte Rusty Harold.
By: Harold, Elliotte Rusty
.
Material type:
BookSeries: Java series.Publisher: Beijing ; Cambridge : O'Reilly, 1997Description: xvii, 422 p. : ill. ; 24 cm. + pbk.ISBN: 1565922271.Subject(s): Java (Computer program language)| Item type | Current library | Call number | Copy number | Status | Barcode | |
|---|---|---|---|---|---|---|
| General lending | MTU Bishopstown Library Lending | 005.2762 (Browse shelf(Opens below)) | 1 | Available | 00078099 |
Browsing MTU Bishopstown Library shelves, Shelving location: Lending Close shelf browser (Hides shelf browser)
Enhanced descriptions from Syndetics:
The network is the soul of Java. Most of what is new and exciting about Java centers around the potential for new kinds of dynamic networked applications. Java Network Programming describes the java.net package, which contains classes for communications and working with networked resources. It is a complete introduction to developing network programs (both applets and applications) using Java, covering everything from networking fundamentals to remote method invocation (RMI).Whether you're an experienced network programmer, or just want to see what's possible, you'll find Java Network Programming is a thorough guide to Java's networking potential. It covers Java 1.1, contains many complete programs (available online), and covers all aspects of basic network programming. You'll find chapters on TCP and UDP sockets, multicasting protocol and content handlers, and servlets, part of the new Server API. It also covers what you can do without explicitly writing newtork code: how you can accomplish your goals using URLs and the basic capabilities of applets.
Includes index.
Why Networked Java? -- Basic Network Concepts -- Basic Web Concepts -- Processing Internet Addresses -- Retrieving Data with URLs -- The network methods of java.applet.Applet -- Sockets for clients -- Sockets for Servers -- UDP Datagrams and Sockets -- The URLConnection Class -- Protocol Handlers -- Content Handlers -- Multicast Sockets -- Remote Method Invocation -- The Java Server API and Servlets.
Table of contents provided by Syndetics
- Preface (p. xi)
- 1 Why Networked Java? (p. 1)
- What Can a Network Program Do? (p. 2)
- Security (p. 16)
- But Wait! There's More! (p. 18)
- 2 Basic Network Concepts (p. 19)
- Networks (p. 19)
- The Layers of a Network (p. 21)
- IP, TCP, and UDP (p. 27)
- The Internet (p. 31)
- The Client/Server Model (p. 36)
- Internet Standards (p. 38)
- 3 Basic Web Concepts (p. 46)
- URIs (p. 46)
- HTML, SGML, and XML (p. 53)
- HTTP (p. 55)
- MIME Media Types (p. 59)
- Server-Side Programs (p. 63)
- 4 Streams (p. 67)
- Output Streams (p. 68)
- Input Streams (p. 72)
- Filter Streams (p. 76)
- Readers and Writers (p. 91)
- 5 Threads (p. 105)
- Running Threads (p. 107)
- Returning Information from a Thread (p. 111)
- Synchronization (p. 123)
- Deadlock (p. 129)
- Thread Scheduling (p. 130)
- Thread Pools (p. 144)
- 6 Looking Up Internet Addresses (p. 150)
- The InetAddress Class (p. 152)
- Inet4Address and Inet6Address (p. 169)
- The NetworkInterface Class (p. 170)
- Some Useful Programs (p. 173)
- 7 URLs and URIs (p. 184)
- The URL Class (p. 184)
- The URLEncoder and URLDecoder Classes (p. 208)
- The URI Class (p. 213)
- Proxies (p. 222)
- Communicating with Server-Side Programs Through GET (p. 225)
- Accessing Password-Protected Sites (p. 229)
- 8 HTML in Swing (p. 237)
- HTML on Components (p. 237)
- JEditorPane (p. 239)
- Parsing HTML (p. 248)
- Cookies (p. 266)
- 9 Sockets for Clients (p. 275)
- Socket Basics (p. 275)
- Investigating Protocols with Telnet (p. 276)
- The Socket Class (p. 278)
- Socket Exceptions (p. 304)
- Socket Addresses (p. 305)
- Examples (p. 306)
- 10 Sockets for Servers (p. 325)
- The ServerSocket Class (p. 325)
- Some Useful Servers (p. 342)
- 11 Secure Sockets (p. 363)
- Secure Communications (p. 364)
- Creating Secure Client Sockets (p. 367)
- Methods of the SSLSocket Class (p. 371)
- Creating Secure Server Sockets (p. 376)
- Methods of the SSLServerSocket Class (p. 381)
- 12 Non-Blocking I/O (p. 384)
- An Example Client (p. 385)
- An Example Server (p. 389)
- Buffers (p. 395)
- Channels (p. 415)
- Readiness Selection (p. 420)
- 13 UDP Datagrams and Sockets (p. 423)
- The UDP Protocol (p. 423)
- The DatagramPacket Class (p. 425)
- The DatagramSocket Class (p. 435)
- Some Useful Applications (p. 448)
- DatagramChannel (p. 461)
- 14 Multicast Sockets (p. 470)
- What Is a Multicast Socket? (p. 471)
- Working with Multicast Sockets (p. 479)
- Two Simple Examples (p. 487)
- 15 URLConnections (p. 493)
- Opening URLConnections (p. 494)
- Reading Data from a Server (p. 495)
- Reading the Header (p. 497)
- Configuring the Connection (p. 506)
- Configuring the Client Request HTTP Header (p. 515)
- Writing Data to a Server (p. 517)
- Content Handlers (p. 522)
- The Object Methods (p. 524)
- Security Considerations for URLConnections (p. 524)
- Guessing MIME Content Types (p. 525)
- HttpURLConnection (p. 528)
- Caches (p. 544)
- JarURLConnection (p. 549)
- 16 Protocol Handlers (p. 552)
- What Is a Protocol Handler? (p. 552)
- The URLStreamHandler Class (p. 556)
- Writing a Protocol Handler (p. 564)
- More Protocol Handler Examples and Techniques (p. 567)
- The URLStreamHandlerFactory Interface (p. 576)
- 17 Content Handlers (p. 580)
- What Is a Content Handler? (p. 582)
- The ContentHandler Class (p. 584)
- The ContentHandlerFactory Interface (p. 595)
- A Content Handler for the FITS Image Format (p. 598)
- 18 Remote Method Invocation (p. 610)
- What Is Remote Method Invocation? (p. 610)
- Implementation (p. 616)
- Loading Classes at Runtime (p. 624)
- The java.rmi Package (p. 628)
- The java.rmi.registry Package (p. 634)
- The java.rmi.server Package (p. 635)
- 19 The JavaMail API (p. 641)
- What Is the JavaMail API? (p. 642)
- Sending Email (p. 644)
- Receiving Mail (p. 654)
- Password Authentication (p. 659)
- Addresses (p. 663)
- The URLName Class (p. 667)
- The Message Class (p. 670)
- The Part Interface (p. 682)
- Multipart Messages and File Attachments (p. 692)
- MIME Messages (p. 696)
- Folders (p. 698)
- Index (p. 713)