Re: Refuse connections in the selector

2008-05-16 Thread ubekhet
Yes, I want to write my own NIO code. But I dont know how to cancel/close a connection in the selector, because the file NioEndPoint.java es so confusing and I dont in which of class of that file I have to do that. Tnaks > I'm still not sure what you're asking, but if you are writing your own > N

Re: Refuse connections in the selector

2008-05-16 Thread Filip Hanik - Dev Lists
I'm still not sure what you're asking, but if you are writing your own NIO code, then you can cancel/close a connection that is in the selector pool at any point in time. Just get it out of the selector pool, and close it. Filip ubekhet wrote: Hi Filip, Is related java nio, and in this case

Re: Refuse connections in the selector

2008-05-16 Thread ubekhet
Hi Filip, Is related java nio, and in this case as I use Tomcat with NIO paradigm, is the same. Thanks Filip Hanik - Dev Lists wrote: is this related to tomcat, or just generic java/nio? Filip ubekhet wrote: Hi, I would like to know, how I can refuse the connections when they are in the

Re: Refuse connections in the selector

2008-05-16 Thread Filip Hanik - Dev Lists
is this related to tomcat, or just generic java/nio? Filip ubekhet wrote: Hi, I would like to know, how I can refuse the connections when they are in the selector pool, just for waiting thread to manage connections. I use Tomcat 6 and also using NIO paradigm! and I dont know how to do that.

Refuse connections in the selector

2008-05-16 Thread ubekhet
Hi, I would like to know, how I can refuse the connections when they are in the selector pool, just for waiting thread to manage connections. I use Tomcat 6 and also using NIO paradigm! and I dont know how to do that. Thanks in advance!!! --