Java NIO and TCP Connections: Difference between revisions
Jump to navigation
Jump to search
Line 6: | Line 6: | ||
=Overview= | =Overview= | ||
This article describes the programming model involved in establishing a simple TCP connection and interacting with it with non-blocking I/O, from Java. We use [[Java_Non-Blocking_I/O_Concepts#Overview|Java NIO APIs]] [[Java_Non-Blocking_I/O_Concepts#Primitives|primitives]] | This article describes the programming model involved in establishing a simple TCP connection and interacting with it with non-blocking I/O, from Java. We use [[Java_Non-Blocking_I/O_Concepts#Overview|Java NIO APIs]] [[Java_Non-Blocking_I/O_Concepts#Primitives|primitives]] introduced in Java 4. | ||
=Programming Model= | =Programming Model= |
Revision as of 17:59, 25 July 2018
Internal
Overview
This article describes the programming model involved in establishing a simple TCP connection and interacting with it with non-blocking I/O, from Java. We use Java NIO APIs primitives introduced in Java 4.
Programming Model
Server
The server code uses a Selector