Expand description
Background tasks
Macros§
Functions§
- announce_
seed_ task - Background task that announces our files once every hour. Also removes seeders that did not announce for too long.
- get_
task - Triggered when calling the
fud.get()method. It creates a new StoppableTask (runningfud.fetch_resource()) and inserts it into thefud.fetch_taskshashmap. When the task is stopped it’s removed from the hashmap. - handle_
dht_ events - Handle DHT events in fud.
- lookup_
task - Triggered when you need to lookup seeders for a resource.
- node_
id_ task - Background task that:
- put_
task - Triggered when calling the
fud.put()method. - verify_
node_ task - After pinging an inbound connection, this task is triggered to make sure
that you are able to reach at least one of the node’s external address.
Fud::ping()will take care of adding the node to our buckets.