Freenet
Class StandardHandshakeHandler

java.lang.Object
Freenet.StandardHandshakeHandler
- All Implemented Interfaces:
- HandshakeHandler
- public class StandardHandshakeHandler
- extends java.lang.Object
- implements HandshakeHandler
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
handshakes
private java.util.Hashtable handshakes
waiters
private volatile java.util.Hashtable waiters
StandardHandshakeHandler
public StandardHandshakeHandler()
getHandshake
public boolean getHandshake(Core n,
ConnectionHandler ch)
- Sends a handshake over a given connection. Please note that the
handshake will register as belonging to the port which this
connection is connected to, if you did not initiate the connection
this is probably not the same port the node listens on - and you should
use the method that connects itself instead.
- Specified by:
getHandshake
in interface HandshakeHandler
getHandshake
public boolean getHandshake(Core n,
Address addr)
- Specified by:
getHandshake
in interface HandshakeHandler
setHandshake
public void setHandshake(long id)
- Specified by:
setHandshake
in interface HandshakeHandler