Hey! I made a thread over at gamedev about a problem I had with networking. One respons I got said that Java nio has bugs that has not been fixed. Is this really true? I find it strange, but he sounded pretty sure. Take a look:
http://www.gamedev.net/topic/604811-how-common-is-data-errors-in-tcp/Also, I started thinking about using some sort of networking library instead. I want to make an MMO that can support a few hunderd players, and I want to use TCP. I want something that just works so that I can get on with my game. I have looked a bit at Mina, and it seems nice. Any tips or suggestions?
My first post here :p
I've worked on RuneScape private servers before, and I'm currently working on a Minecraft server implementation, much like CraftBukkit. What I've found is that, no matter how hard you try, using libraries built on top of NIO isn't what I want. I much prefer the ability to make it as lightweight and controllable as possible: that means, I like to just use my own implementation of the java.nio package. That goes without saying that Netty/MINA/etc. are bad, but I found myself uncomfortable with trying to "master" the usage of them at the cost of possibly using them wrong.
I looked up "java nio server example" on Google and found an even better one. I can't link right now but you can try it yourself! I believe it was the fourth result on Google.
Being paranoid of bugs is quite OK -- it's understandable. However, I can assure you that I've used to java.nio lib as it is plenty of times and have yet to encounter and sort of error that was caused by the API and not by me messing something up.