public class OtpPeer extends AbstractNode
OtpConnection
class.构造器和说明 |
---|
OtpPeer(java.lang.String node)
Create a peer node.
|
限定符和类型 | 方法和说明 |
---|---|
OtpConnection |
connect(OtpSelf self)
已过时。
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.