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.
fun configureAfterHandshake(helloMessage: HelloMessage): Unit |
|
fun equals(other: Any?): Boolean |
|
fun hashCode(): Int |
|
static fun isComplementedBy(one: RLPxConnection, other: RLPxConnection): Boolean
Checks if two RLPx connections represent both ends of a connection. Used for testing. |
|
fun peerPublicKey(): PublicKey |
|
fun publicKey(): PublicKey |
|
fun readFrame(messageFrame: Bytes): RLPxMessage |
|
fun stream(newBytes: Bytes, messageConsumer: Consumer<RLPxMessage>): Unit |
|
fun write(message: RLPxMessage): Bytes
Frames a message for sending to an RLPx peer, encrypting it and calculating the appropriate MACs. |