20 lines
623 B
C
20 lines
623 B
C
#pragma once
|
|
#include <stdlib.h>
|
|
#include <stdio.h>
|
|
#include <string.h>
|
|
#include <sys/signalfd.h>
|
|
#include <errno.h>
|
|
#include "net_tools.h"
|
|
#include "evt_core.h"
|
|
#include "packet.h"
|
|
|
|
struct donar_params {
|
|
int opt, is_server, is_client, is_waiting_bootstrap, is_healing, errored, verbose, links, fresh_data, redundant_data;
|
|
char *port, *onion_file, *algo;
|
|
GPtrArray *remote_ports, *exposed_ports;
|
|
};
|
|
|
|
void signal_init(struct evt_core_ctx* evts);
|
|
void init_udp_remote(char* port, struct evt_core_ctx* evts);
|
|
void init_udp_exposed(char* port, struct evt_core_ctx* evts);
|
|
void donar_init_params(struct donar_params* dp);
|