Book Image

Java Network Programming Recipes [Video]

By : Peter Verhas
Book Image

Java Network Programming Recipes [Video]

By: Peter Verhas

Overview of this book

Java provides numerous classes that have developed over the years to meet evolving networking needs. These range from low-level socket and IP-based approaches to those encapsulated in software services. This practical tutorial provides a complete introduction to developing network programs with Java. We start with the basics of networking and then explore how Java supports the development of clients/servers. You’ll explore how to use Java’s network class library to rapidly and effortlessly accomplish common networking tasks such as writing multithreaded servers, network scalability, implementing application protocols, and filtering clients and client names. Java NIO packages are examined as well as multitasking, building hands-on NIO buffers, scatter and gather, and transferring data to channels and selectors. By the end of this video tutorial, you will have mastered networking fundamentals (and advanced concepts) in Java to ensure you understand (and are capable of building) networked programs.
Table of Contents (4 chapters)
Chapter 4
Java NIO Programming
Content Locked
Section 3
Java NIO Scatter and Gather
In this video, we will learn about Java NIO scatter and gather. - Learn how to write to different buffers in one read and how to read from different buffers to a channel in one read - Learn why it is good and what it can be used for - Create sample application that reads from a file a fixed size header and body and then writes to a different file a similar structure