The Callback Idea is almost what we need here.  The problem is: the callback
has no way of knowing if there was an IOException or if the transfer was
successful.  Perhaps the callback could take the Exception as a parameter or
null if there was success.  This will need changes everywhere the callback
is used but I think all the code could benefit if it knew there was a
exception.

Paul Kappler


> From: Oskar Sandberg <md98-osa at nada.kth.se>
>
> The conduit can take an implementation of the support/Callback interface and
> call that when it is finished. This is used for closing the network stream
> after sending a message with a trailing field in ConnectionHandler.java for
> example.
> 
> It isn't that different from doing it in the Counter's finished method, but it
> is more in line with what the different objects were meant for.
>


_______________________________________________
Freenet-dev mailing list
Freenet-dev at lists.sourceforge.net
http://lists.sourceforge.net/mailman/listinfo/freenet-dev

Reply via email to