devp2p / org.apache.tuweni.devp2p / PingPacket

PingPacket

class PingPacket : Packet (source)

Properties

enrSeq

val enrSeq: Long?

from

val from: Endpoint

to

val to: Endpoint

Functions

encodeTo

fun encodeTo(dst: ByteBuffer): ByteBuffer

Companion Object Functions

create

fun create(keyPair: KeyPair, now: Long, from: Endpoint, to: Endpoint, seq: Long?): PingPacket

decode

fun decode(payload: Bytes, hash: Bytes32, publicKey: PublicKey, signature: Signature): PingPacket