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?
(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?