Java NIO and TCP Connections: Difference between revisions
Jump to navigation
Jump to search
Line 2: | Line 2: | ||
* [[TCP#Java_NIO_and_TCP_Connections|TCP]] | * [[TCP#Java_NIO_and_TCP_Connections|TCP]] | ||
* [[Java_Non-Blocking_I/O_Concepts# | * [[Java_Non-Blocking_I/O_Concepts#Java_NIO_and_TCP_Connections|Java Non-Blocking I/O Concepts]] | ||
=Overview= | =Overview= |
Revision as of 17:57, 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