Conversation Between blakeman8192 and lare96

5 Visitor Messages

  1. you're back?
  2. Please help: http://www.rune-server.ee/runescape...ease-read.html I would think you'd know best because you created the source lol. Thanks a lot man!
  3. Well, if you accept a SocketChannel from a ServerSocketChannel, you can obtain the Socket of the accepted channel by calling SocketChannel.socket(). So yes, it is possible. However, you will see no performance benefit. The performance benefit of NIO is in it's scalability as opposed to IO. This is entirely based upon using a selector to determine readiness instead of thousands of threads within the JVM thread scheduler.

    To answer your question simply: yes it is possible to use NIO to accept incoming connections and then use IO with those accepted connections, but it will not improve your servers performance at all.
  4. Would it be possible to just do Socket/ServerSocket with NIO netwotking, (I know I would still have do plr updating in nio) and the rest IO?

    If so, would it still be efficient?
Showing Visitor Messages 1 to 5 of 5