Public API

Structures

bucket
node
parsed_message
peer
search_node
storage

Functions

__attribute__
dht_blacklisted

Mentioned in

dht_dump_tables

Mentioned in

dht_get_nodes

Mentioned in

dht_gettimeofday
dht_hash

Mentioned in

dht_init

Mentioned in

dht_insert_node

Mentioned in

dht_nodes

Mentioned in

dht_periodic

Mentioned in

dht_ping_node

Mentioned in

dht_random_bytes

Mentioned in

dht_sendtoThis must be provided by the user.
dht_uninit

Mentioned in

inet_ntopWindows Vista and later already provide the implementation.

Typedefs

Typedefs (dht.h)

typedef void dht_callback_t(void *closure, int event, const unsigned char *info_hash, const void *data, size_t data_len)

Variables

Variables (dht.c)

const unsigned char zeroes = {0}

const unsigned char v4prefix = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0xFF, 0xFF, 0, 0, 0, 0 }

int dht_socket = -1

int dht_socket6 = -1

time_t search_time

time_t confirm_nodes_time

time_t rotate_secrets_time

unsigned char myid

Mentioned in:

int have_v = 0

unsigned char my_v

unsigned char secret

unsigned char oldsecret

struct bucket * buckets = NULL

struct bucket * buckets6 = NULL

int numstorage

struct search * searches = NULL

int numsearches

unsigned short search_id

struct sockaddr_storage blacklist

int next_blacklisted

struct timeval now

time_t mybucket_grow_time

time_t mybucket6_grow_time

time_t expire_stuff_time

time_t token_bucket_time

int token_bucket_tokens

FILE * dht_debug = NULL

Mentioned in:






Add Discussion as Guest

Log in