1) You obtain the next filter and call messageReceived there. Mina will automatically wrap the last filter and call the handler. 2) nextFilter.filterWrite(session, new DefaultWriteRequest(out, writeRequest.getFuture(), writeRequest.getDestination()));
On Fri, Apr 26, 2013 at 2:45 PM, Max Larsson <[email protected]>wrote: > Hi Emmanuel, > > i have now a IoFilter which implement the initial connection > establishing. But i have two question. > > 1) In my filter how do i send response to a messageRecived, so that > the IoHandler does get informed. > > 2) The responses are only flushed out, during application shutdown. > (J used flip() before sending the buffer via a DefaultWriteRequest > down the nextFilter with filterWrite. > > I think the two questions relates somehow? > > regards > > Max > > > On 18.04.13 02:00, Emmanuel Lécharny wrote: > >> Le 4/17/13 7:56 PM, Max Larsson a écrit : >> >>> Hi Emmanuel, >>> >>> Somehow i habe completly missed The concept of of filters. You are right >>> They seem to fit perfectly. Just a question are iohanders even iofilters? >>> >> No. They are two different interfaces. The IoHandler just process the >> events that are being generated by the IoService and propagated through >> the IoFilters. >> >> >> > > -- > ______________________________**______________________________**_________ > > Max Larsson > facilityboss GmbH > Rheinstrasse 75, 64295 Darmstadt / Germany > Handelsregister Darmstadt, HRB 86193 > Geschäftsführer: Dipl.-Inform. Max Lars Robert Larsson > > Mobil: +49 179 2184428 > Email: [email protected] >
