Forum Stats

  • 3,852,833 Users
  • 2,264,140 Discussions
  • 7,905,156 Comments

Discussions

JAVA NIO - Implementation of socket communication using socketchannels

Hi All

I need to write a program using NIO to which writes to a socket and once the i get back a response I need to capture the response.

The same program is currently implemented using java IO where i have used a THREAD to read data from the socket. The aim is to use NIO and
get read of the THREADS. As NIO selector acts like a eventhandler.

Kindly suggest .
This discussion has been closed.