|
BitLab 0.1.0
BitLab: A Browser for the Bitcoin P2P Network and Blockchain
|
#include "peer_discovery.h"#include <string.h>#include <stdint.h>#include <netinet/in.h>#include <pthread.h>#include "peer_queue.h"#include "state.h"#include "utils.h"#include "cli.h"#include "ip.h"Go to the source code of this file.
Functions | |
| void * | handle_peer_discovery (void *arg) |
| Peer discovery handler thread. | |
Variables | |
| static const char * | dns_seeds [] |
| static const char * | hardcoded_peers [] |
| void * handle_peer_discovery | ( | void * | arg | ) |
Peer discovery handler thread.
| arg | Not used. Write dummy code for no warning. |
Definition at line 31 of file peer_discovery.c.
References add_peer_to_queue(), BITLAB_LOG, BUFFER_SIZE, dns_seeds, finish_peer_discovery_progress(), get_exit_flag(), get_peer_discovery(), get_peer_discovery_dns_domain(), get_peer_discovery_dns_lookup(), get_peer_discovery_hardcoded_seeds(), get_peer_discovery_in_progress(), get_peer_discovery_succeeded(), guarded_print_line(), hardcoded_peers, LOG_ERROR, LOG_INFO, log_message(), lookup_address(), start_peer_discovery_progress(), strtok(), and usleep().
Referenced by run_bitlab().
|
static |
Definition at line 14 of file peer_discovery.c.
Referenced by handle_peer_discovery().
|
static |
Definition at line 22 of file peer_discovery.c.
Referenced by handle_peer_discovery().