
Java Network Programming
Description
Alles über E-Books | Antworten auf Fragen rund um E-Books, Kopierschutz und Dateiformate finden Sie in unserem Info- & Hilfebereich.
More details
Other editions
Additional editions

Content
- Cover
- Copyright
- Table of Contents
- Preface
- About the Fourth Edition
- Organization of the Book
- Who You Are
- Java Versions
- About the Examples
- Conventions Used in This Book
- Request for Comments
- Using Code Examples
- Safari® Books Online
- How to Contact Us
- Acknowledgments
- Chapter 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
- Firewalls
- Proxy Servers
- The Client/Server Model
- Internet Standards
- IETF RFCs
- W3C Recommendations
- Chapter 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
- Chapter 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
- Chapter 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
- Processing Web Server Logfiles
- Chapter 5. URLs and URIs
- URIs
- URLs
- Relative URLs
- The URL Class
- Creating New URLs
- Retrieving Data from a URL
- Splitting a URL into Pieces
- Equality and Comparison
- Conversion
- The URI Class
- Constructing a URI
- The Parts of the URI
- Resolving Relative URIs
- Equality and Comparison
- String Representations
- x-www-form-urlencoded
- URLEncoder
- URLDecoder
- Proxies
- System Properties
- The Proxy Class
- The ProxySelector Class
- Communicating with Server-Side Programs Through GET
- Accessing Password-Protected Sites
- The Authenticator Class
- The PasswordAuthentication Class
- The JPasswordField Class
- Chapter 6. HTTP
- The Protocol
- Keep-Alive
- HTTP Methods
- The Request Body
- Cookies
- CookieManager
- CookieStore
- Chapter 7. URLConnections
- Opening URLConnections
- Reading Data from a Server
- Reading the Header
- Retrieving Specific Header Fields
- Retrieving Arbitrary Header Fields
- Caches
- Web Cache for Java
- Configuring the Connection
- protected URL url
- protected boolean connected
- protected boolean allowUserInteraction
- protected boolean doInput
- protected boolean doOutput
- protected boolean ifModifiedSince
- protected boolean useCaches
- Timeouts
- Configuring the Client Request HTTP Header
- Writing Data to a Server
- Security Considerations for URLConnections
- Guessing MIME Media Types
- HttpURLConnection
- The Request Method
- Disconnecting from the Server
- Handling Server Responses
- Proxies
- Streaming Mode
- Chapter 8. Sockets for Clients
- Using Sockets
- Investigating Protocols with Telnet
- Reading from Servers with Sockets
- Writing to Servers with Sockets
- Constructing and Connecting Sockets
- Basic Constructors
- Picking a Local Interface to Connect From
- Constructing Without Connecting
- Socket Addresses
- Proxy Servers
- Getting Information About a Socket
- Closed or Connected?
- toString()
- Setting Socket Options
- TCP_NODELAY
- SO_LINGER
- SO_TIMEOUT
- SO_RCVBUF and SO_SNDBUF
- SO_KEEPALIVE
- OOBINLINE
- SO_REUSEADDR
- IP_TOS Class of Service
- Socket Exceptions
- Sockets in GUI Applications
- Whois
- A Network Client Library
- Chapter 9. Sockets for Servers
- Using ServerSockets
- Serving Binary Data
- Multithreaded Servers
- Writing to Servers with Sockets
- Closing Server Sockets
- Logging
- What to Log
- How to Log
- Constructing Server Sockets
- Constructing Without Binding
- Getting Information About a Server Socket
- Socket Options
- SO_TIMEOUT
- SO_REUSEADDR
- SO_RCVBUF
- Class of Service
- HTTP Servers
- A Single-File Server
- A Redirector
- A Full-Fledged HTTP Server
- Chapter 10. Secure Sockets
- Secure Communications
- Creating Secure Client Sockets
- Choosing the Cipher Suites
- Event Handlers
- Session Management
- Client Mode
- Creating Secure Server Sockets
- Configuring SSLServerSockets
- Choosing the Cipher Suites
- Session Management
- Client Mode
- Chapter 11. Nonblocking I/O
- An Example Client
- An Example Server
- Buffers
- Creating Buffers
- Filling and Draining
- Bulk Methods
- Data Conversion
- View Buffers
- Compacting Buffers
- Duplicating Buffers
- Slicing Buffers
- Marking and Resetting
- Object Methods
- Channels
- SocketChannel
- ServerSocketChannel
- The Channels Class
- Asynchronous Channels (Java 7)
- Socket Options (Java 7)
- Readiness Selection
- The Selector Class
- The SelectionKey Class
- Chapter 12. UDP
- The UDP Protocol
- UDP Clients
- UDP Servers
- The DatagramPacket Class
- The Constructors
- The get Methods
- The setter Methods
- The DatagramSocket Class
- The Constructors
- Sending and Receiving Datagrams
- Managing Connections
- Socket Options
- SO_TIMEOUT
- SO_RCVBUF
- SO_SNDBUF
- SO_REUSEADDR
- SO_BROADCAST
- IP_TOS
- Some Useful Applications
- Simple UDP Clients
- UDPServer
- A UDP Echo Client
- DatagramChannel
- Using DatagramChannel
- Chapter 13. IP Multicast
- Multicasting
- Multicast Addresses and Groups
- Clients and Servers
- Routers and Routing
- Working with Multicast Sockets
- The Constructors
- Communicating with a Multicast Group
- Two Simple Examples
- Index
- About the Author
System requirements
File format: ePUB
Copy protection: Adobe-DRM (Digital Rights Management)
System requirements:
- Computer (Windows; MacOS X; Linux): Install the free reader Adobe Digital Editions prior to download (see eBook Help).
- Tablet/smartphone (Android; iOS): Install the free app Adobe Digital Editions or the app PocketBook before downloading (see eBook Help).
- E-reader: Bookeen, Kobo, Pocketbook, Sony, Tolino and many more (not Kindle).
The file format ePub works well for novels and non-fiction books – i.e., „flowing” text without complex layout. On an e-reader or smartphone, line and page breaks automatically adjust to fit the small displays.
This eBook uses Adobe-DRM, a „hard” copy protection. If the necessary requirements are not met, unfortunately you will not be able to open the eBook. You will therefore need to prepare your reading hardware before downloading.
Please note: We strongly recommend that you authorise using your personal Adobe ID after installation of any reading software.
For more information, see our ebook Help page.