dcsimg
About the NIO:What will happened when write to a unwritable channel
0 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   mermaid_java
Posted On:   Friday, April 23, 2004 12:19 AM

If I don't register the socketchannel as a SelectionKey.OP_WRITE,and directly write to the socketchannel ,what will happened?

I think it is only blocked on read
why in nio packet,we should register a channel to writable when have data to transfer?
why not write the buffer and send dirrectly?

About | Sitemap | Contact