public class OtpPeer extends AbstractNode
OtpConnection class.| Constructor and Description |
|---|
OtpPeer(java.lang.String node)
Create a peer node.
|
| Modifier and Type | Method and Description |
|---|---|
OtpConnection |
connect(OtpSelf self)
Deprecated.
Use the corresponding method in
OtpSelf instead. |
public OtpPeer(java.lang.String node)
node - the name of the node.@Deprecated public OtpConnection connect(OtpSelf self) throws java.io.IOException, java.net.UnknownHostException, OtpAuthException
OtpSelf instead.self - the local node from which you wish to connect.java.net.UnknownHostException - if the remote host could not be found.java.io.IOException - if it was not possible to connect to the remote node.OtpAuthException - if the connection was refused by the remote node.