abstract fun connectTo(peerPublicKey: PublicKey!, peerAddress: InetSocketAddress!): AsyncResult<WireConnection!>!
(source)
Connects to a remote peer.
peerPublicKey
- PublicKey!: the peer public key
peerAddress
- InetSocketAddress!: the peer host and port
Return
AsyncResult<WireConnection!>!: a handle that completes if the peer connects successfully, providing the connection.