On Fri, 2007-02-09 at 11:16 +0100, Stojce Dimski wrote:
> Hi Oleg,
> 
> OK, you are right maybe I have to insist with pure nio approach...
> I think that instead of waiting for your proxy, maybe I can do it with
> you guidance ? And leave it in 'contrib' or 'examples' area ?
> 
> To make sure that I understood the steps described in your previous
> message, I wrote a 'plain vanilla' 'NHttpClientHandler' and
> 'NHttpServiceHandler' but some pieces fall in place some not...
> 
> When connecting as per 2) in 'requestReceived' instead of creating the
> bag of needed objects I simply attach a connection as an attachment,
> because in 'requestReady' 6) I need it to 'requestInput' is it OK ?
> 

I believe so.

Things to watch out for. The default NHttpConnection impls are _not_
fully thread safe because usually they are meant to be interacted with
on the same I/O thread only. Once you start passing connection objects
around you will need to synchronize access to them.

> a) Can I send, or attach it here a 3 little skeleton classes to confirm
> that I understood what you have said ?

Feel free to send them directly to my apache.org account

> b) Can you elaborate (8) 'enables output...if necessary' ?

In case output events were previously suspended. 

> c) How can listen on multiple addresses ?
> 

ioReactor.listen(new InetSocketAddress(8080));
ioReactor.listen(new InetSocketAddress(8081));
ioReactor.listen(new InetSocketAddress(8082));

Oleg


> Thanks,
> Stojce
> 
> 
> 
>       
> 
>       
>               
> ___________________________________ 
> L'email della prossima generazione? Puoi averla con la nuova Yahoo! Mail: 
> http://it.docs.yahoo.com/nowyoucan.html
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to