Node - the type of node at the remote endpoint.public class HandshakeBogus<Node extends RemoteNode<Node>> extends java.lang.Object implements Protocol<Node>
| Constructor and Description |
|---|
HandshakeBogus() |
HandshakeBogus(java.lang.String store,
long onum) |
| Modifier and Type | Method and Description |
|---|---|
ShakenSocket<Node> |
initiate(Node node,
java.net.Socket s)
Initiates a handshake with a remote host at the given address.
|
ShakenSocket<RemoteWorker> |
receive(java.net.Socket s)
Receives a handshake via the given socket.
|
public HandshakeBogus(java.lang.String store,
long onum)
public HandshakeBogus()
public ShakenSocket<Node> initiate(Node node, java.net.Socket s) throws java.io.IOException
Protocolinitiate in interface Protocol<Node extends RemoteNode<Node>>node - the remote node to connect to.s - the socket on which to initiate a handshake.java.io.IOExceptionpublic ShakenSocket<RemoteWorker> receive(java.net.Socket s) throws java.io.IOException
Protocolreceive in interface Protocol<Node extends RemoteNode<Node>>s - the socket on which to receive a handshake.java.io.IOException