users@grizzly.java.net

handleAccept/handleWrite in FilterAdapter

From: buzz lightyear <buzzheavyyear_at_hotmail.com>
Date: Fri, 8 May 2009 11:33:07 +0000

Hi

Grizzly 2.0

When a client connects, handleRead sits and waits for the client to push something to the port before sending it along the filterchain.

I need to immediately send the client a 'greeting' when it connects. After this, the client initialises the dialog between server and client.

I tried setting up the greeting in handleAccept -> streamWriter = null. I tried setting up the greeting in handleWrite and the call never came.

Is there a solution to this?

Cheers

Nick

_________________________________________________________________
View your Twitter and Flickr updates from one place – Learn more!
http://clk.atdmt.com/UKM/go/137984870/direct/01/