RNS::Discovery::InterfaceDiscovery
═══════════════════════════════════════════════════════════════════ InterfaceDiscovery — coordinates discovery, persistence, autoconnect ═══════════════════════════════════════════════════════════════════
Constants
AUTOCONNECT_TYPES = ["BackboneInterface", "TCPServerInterface"]
DETACH_THRESHOLD = 12
MONITOR_INTERVAL = 5
STATUS_AVAILABLE = 1000
STATUS_CODE_MAP = {"available" => STATUS_AVAILABLE, "unknown" => STATUS_UNKNOWN, "stale" => STATUS_STALE}
STATUS_STALE = 0
STATUS_UNKNOWN = 100
THRESHOLD_REMOVE = ((7 * 24) * 60) * 60
THRESHOLD_STALE = ((3 * 24) * 60) * 60
THRESHOLD_UNKNOWN = (24 * 60) * 60
Constructors
Instance methods
autoconnect(info : InfoHash)
Sourceautoconnect_count
Sourcebootstrap_interface_count
Sourceconnect_discovered
Sourcedetach_threshold
Sourcediscovery_callback
Sourcehandler
Sourceinitial_autoconnect_ran
Sourceinterface_discovered(info : InfoHash)
Sourcelist_discovered_interfaces(only_available : Bool = false, only_transport : Bool = false) : Array(InfoHash)
Sourcemonitor_interface(interface : Interface)
Sourcemonitor_interval
Sourcemonitored_interfaces
Sourcemonitoring_autoconnects
Sourcerequired_value
Sourcestoragepath
Sourceteardown_interface(interface : Interface)
Source