class RLPxConnection
(source)
Connection between 2 peers over the RLPx protocol.
The RLPx protocol creates a exchange of unique secrets during an initial handshake. The peers proceed to communicate using the shared secrets.
This connection allows encrypting and decrypting messages with a remote peer.
configureAfterHandshake |
fun configureAfterHandshake(helloMessage: HelloMessage!): Unit |
equals |
fun equals(other: Any?): Boolean |
hashCode |
fun hashCode(): Int |
isComplementedBy |
Checks if two RLPx connections represent both ends of a connection. static fun isComplementedBy(one: RLPxConnection!, other: RLPxConnection!): Boolean |
peerPublicKey |
Provides the peer public key fun peerPublicKey(): PublicKey! |
publicKey |
Provides the local public key fun publicKey(): PublicKey! |
readFrame |
fun readFrame(messageFrame: Bytes!): RLPxMessage! |
stream |
fun stream(newBytes: Bytes!, messageConsumer: Consumer<RLPxMessage!>!): Unit |
write |
Frames a message for sending to an RLPx peer, encrypting it and calculating the appropriate MACs. fun write(message: RLPxMessage!): Bytes! |