Hi friends, I have developed a chat server using java.net. Now I would like to upgrade it using java.nio Could anybody get me good liks to start with. I would be happy if anybody could post some code samples here.
Thanks Shahabas E Shabeer
The greatest pleasure in life is doing what peoples say you can not do.
"upgrading" to NIO is kind of a misnomer since the standard java.io classes use nio themselves. The reason to switch to NIO would be to use some of the features that are implemented in NIO which do not exist in the java.io classes, like non-blocking sockets. You can start with this article on Building Highly Scalable Servers with Java NIO