tuweni / org.apache.tuweni.rlpx / RLPxService / connectTo

connectTo

abstract fun connectTo(peerPublicKey: PublicKey!, peerAddress: InetSocketAddress!): AsyncResult<WireConnection!>! (source)

Connects to a remote peer.

Parameters

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.