It would also be nice if we had some way of sharing thread pools and selectors between Acceptors and Connectors. It would take quite a bit of refactoring but it may be nice feature to have for those of us building proxies that have multiple acceptors and multiple connectors working in conjunction.

-Mike

Mark wrote:
Just to clarify this further, because I don't think I described what I
wanted to properly.

I am interested in having one IoAcceptor listen on multiple ports.  This
acceptor will have one Selector and based on the incoming connection/data,
the proper handler will be triggered.  So for each port, you will have an
associated handler but this will all go through a common Selector.  The goal
here is to keep the number of threads at a minimum. I am building a system
that may be listening on many different ports and each port will get
different types of data.  The number of ports could be over 20.

Taking a quick look at the current SocketAcceptor, this would be alot of
work.

Reply via email to