Echo Server Using NIO

J

Jack9

I am looking for a simple client/server chat implementation using NIO
(something based off an echo server would be keen) without running
separate threads. I cannot seem to come to grips with the relationship
between the selector, the selection keys, the
socket/serversocket/socketchannel, and the channels. I understand
sockets and serversockets and that the streams are now handled
differently...that's about it. Can anyone point me to a decent
tutorial or sample code?
 
R

Rene

I am looking for a simple client/server chat implementation using NIO
(something based off an echo server would be keen) without running
separate threads. I cannot seem to come to grips with the relationship
between the selector, the selection keys, the
socket/serversocket/socketchannel, and the channels. I understand
sockets and serversockets and that the streams are now handled
differently...that's about it. Can anyone point me to a decent
tutorial or sample code?

This one helped me:

http://www.javaworld.com/javaworld/jw-09-2001/jw-0907-merlin.html

CU

Rene
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,482
Members
44,901
Latest member
Noble71S45

Latest Threads

Top