• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Paul Clapham
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Roland Mueller
  • Piet Souris
Bartenders:

Using NIO for Client Sockets

 
Ranch Hand
Posts: 38
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am trying to evaluate the use of NIO for Client Sockets. In our application, we are currently creating one thread per user and each thread has a client socket that is connected to the Server and is constantly get real-time updates.

I'm evaluating the possibility of using Selectors and Channels, so that I dont have to create a thread per user. I tried to tweak the samples provided by Sun and I dont seem to be getting a connect event when my client sockets connects to the server.

Here is my makeConnections method:



Thanks
Sameer
 
reply
    Bookmark Topic Watch Topic
  • New Topic