sealed class Packet
(source)
expiration |
val expiration: Long |
hash |
val hash: Bytes32 |
nodeId |
val nodeId: PublicKey |
encodeTo |
abstract fun encodeTo(dst: ByteBuffer): ByteBuffer fun encodeTo(dst: ByteBuffer, packetType: PacketType, contentWriter: (RLPWriter) -> Unit): ByteBuffer |
isExpired |
fun isExpired(now: Long): Boolean |
MAX_SIZE |
const val MAX_SIZE: Int |
MIN_SIZE |
const val MIN_SIZE: Int |
createSignature |
fun createSignature(packetType: PacketType, keyPair: KeyPair, encoder: (RLPWriter) -> Unit): SigHash |
decodeFrom |
fun decodeFrom(datagram: ByteBuffer): Packet fun decodeFrom(datagram: Bytes): Packet |
expirationFor |
fun expirationFor(now: Long): Long |
ENRRequestPacket |
class ENRRequestPacket : Packet |
ENRResponsePacket |
class ENRResponsePacket : Packet |
FindNodePacket |
class FindNodePacket : Packet |
NeighborsPacket |
class NeighborsPacket : Packet |
PingPacket |
class PingPacket : Packet |
PongPacket |
class PongPacket : Packet |