I have server which is receiving data from multiple clients. The data is not
standard protocol. Each client is sending bunch of binrary files .bin files
. The data is received by the server from each socket and written on the
file system for later processing. 

I wanted to do stream I\O on this. Now, when I implemented NIO I am learning
this is a blocking call. Since the StreamIOHandler internally is writing the
bytes via messagereceived, I thought I would be able to see what exactly is
happening behind the scenes.

In the lab setup, what I see is that even though the NE is sending more than
1000 bytes ( which I get when I use StreamIOHandler), I see that
messageReceived gets 5 bytes. I think MINA gets back with 5 bytes since
thats what the socket might have, at the time. Question is how does other
NIO bases servers must be functioning ?
-- 
View this message in context: 
http://www.nabble.com/Implementing-NIO-for-a-client-sockets-which-are-always-alive-tp14573516s16868p14576205.html
Sent from the Apache MINA Support Forum mailing list archive at Nabble.com.

Reply via email to