Originally posted by Daniil Sosonkin:
Thank you guys, those are wonderful pages. One more question, maybe you can point out on technque of making sure all my data is being sent out and received? Say if I need to send out: (int)(byte)(byte)(double)(int). And at the other end I need to receive them in the same sequence. How would a receiving end know when its all received? Or how a sending end would know when its all sent out. Come to think of it, what happens if I send data too fast?
Thanx
Sorry, I'm still new to this forum, here's the actual reply.
I've posted a new set of NIO examples on the SUN forums. These provide a
NIO Server and a
NIO Client that implement a simple 1 to many message switch, a bit like chat. I also provided multithreaded examples.