Cargando…

Learning network programming with Java : harness the hidden power of Java to build network-enabled applications with lower network traffic and faster processes /

Annotation

Detalles Bibliográficos
Clasificación:Libro Electrónico
Autor principal: Reese, Richard M. (Autor)
Formato: Electrónico eBook
Idioma:Inglés
Publicado: Birmingham, UK : Packt Publishing, 2015.
Colección:Community experience distilled.
Temas:
Acceso en línea:Texto completo (Requiere registro previo con correo institucional)
Tabla de Contenidos:
  • Cover; Copyright; Credits; About the Author; About the Reviewer; www.PacktPub.com; Table of Contents; Preface; Chapter 1: Getting Started with Network Programming; Network addressing using the InetAddress class; NIO support; Using the URLConnection class; Using the URLConnection class with buffers and channels; The client/server architecture; Creating a simple echo server; Creating a simple echo client; Using Java 8 to support the echo server and client; UDP and multicasting; Creating a multicast server; Creating the multicast client; Scalability; Creating a threaded server
  • Using the threaded serverSecurity; Creating a SSL server; Creating an SSL client; Generating secure keys; Summary; Chapter 2: Network Addressing; Networking basics; Understanding network basics; Network architectures and protocols; Using the NetworkInterface class; Getting a MAC address; Getting a specific MAC address; Getting multiple MAC addresses; Network addressing concepts; URL/URI/URN; Using the URI class; Creating URI instances; Splitting apart a URI; Using the URL class; Creating URL instances; Splitting apart a URL; IP addresses and the InetAddress class
  • Obtaining information about an addressAddress scoping issues; Testing reachability; Introducing the Inet4Address; Private addresses in IPv4; IPv4 address types; The Inet4Address class; Special IPv4 addresses; Introducing the Inet6Address class; Private addresses in IPv6; The Inet6Address class; Special IPv6 addresses; Testing for the IP address type; Using IPv4-compatible IPv6 addresses; Controlling network properties; Summary; Chapter 3: NIO Support for Networking; Java NIO; Introduction to buffers; Using channels with a time server; Creating a time server; Creating a time client
  • The chat server/client applicationsThe chat server; The chat client; Server/client interaction; The HelperMethods class; Handling variable length messages; Running the chat server/client application; Handling multiple clients; The parts server; The parts client handler; The parts client; Running the parts client/server; Asynchronous socket channels; Creating the asynchronous server socket channel server; Creating the asynchronous socket channel client; Other buffer operations; Bulk data transfer; Using a view; Using read-only buffers; Controlling socket options; Summary
  • Chapter 4: Client/Server DevelopmentThe HTTP protocol structure; The nature of HTTP messages; Initial request line format; Header lines; Message body; Client/Server interaction example; Java socket support for HTTP client/server applications; Building a simple HTTP server; Building a simple HTTP client; Client/server development using standard Java classes; Using the HttpURLConnection class; URL encoding; Using the HTTPServer class; Implementing a simple HTTPServer class; Managing response headers; Open source Java HTTP servers; Server configuration; Handling cookies; Summary