34 const struct sockaddr_storage *peers,
DHT node object.
Definition: node.h:140
int dht_announce_peer(struct dht_node *node, const unsigned char info_hash[20], int port, get_peers_callback callback, void *opaque, dht_search_t *handle)
Announce peer for an infohash.
struct search * dht_search_t
Search handle.
Definition: node.h:165
int dht_get_peers(struct dht_node *node, const unsigned char info_hash[20], get_peers_callback callback, void *opaque, dht_search_t *handle)
Search the DHT for peers for an infohash.
void(* get_peers_callback)(const unsigned char info_hash[20], const struct sockaddr_storage *peers, size_t count, void *opaque)
Peer search complete callback.
Definition: peers.h:33