> DataSource.Shy=true
> 
> Since the HandshakeHandler is pluggable, the easiest way to make shy work
> within the current framework is probably to have a StaticHandshakeHandler that
> gives false on getHandshake from any node not on the approved list. There 
> would
> also need to be a call to it in the AcceptConnections class, but that should
> not be a problem (one could add an approveConnection() method to the
> HandshakeHandler interface, for the StandardHandshakeHandler it could always
> return true).

You could subclass DataSource, but I think it would be better in an
Options field because we might extend shy to do something else in the
future, although I'm not sure what that might be.

I think the way to recognize shy connections is if they set the proper
option (say as I think it should be with Transient and KeepAlive) then it
notices and treats that message accordingly.



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

Reply via email to