class

RNS::Discovery::InterfaceAnnounceHandler

Inherits RNS::Transport::AnnounceHandler < Reference < Object

═══════════════════════════════════════════════════════════════════ InterfaceAnnounceHandler — receives and validates discovery announces ═══════════════════════════════════════════════════════════════════

Constants

FLAG_ENCRYPTED = 2_u8
FLAG_SIGNED = 1_u8
STAMP_SIZE = InterfaceAnnouncer::STAMP_SIZE

Stamp size matching InterfaceAnnouncer

Constructors

new(required_value : Int32 = InterfaceAnnouncer::DEFAULT_STAMP_VALUE, callback : Proc(Hash(String, String | Int64 | Float64 | Bool | Bytes | Nil), Nil) | Nil = nil)
Source
new(required_value : Int32 = InterfaceAnnouncer::DEFAULT_STAMP_VALUE, &block : Hash(String, String | Int64 | Float64 | Bool | Bytes | Nil) -> Nil)

Convenience initializer that accepts a block

Source

Instance methods

aspect_filter
Source
callback
Source
callback=(callback : Proc(Hash(String, String | Int64 | Float64 | Bool | Bytes | Nil), Nil) | Nil)
Source
received_announce(destination_hash : Bytes, announced_identity : Identity | Nil, app_data : Bytes | Nil, announce_packet_hash : Bytes | Nil = nil, is_path_response : Bool = false)
Source
required_value
Source
required_value=(required_value : Int32)
Source