tor_multipath_voip/src/donar_init.h

18 lines
498 B
C
Raw Normal View History

2019-02-19 18:15:37 +00:00
#pragma once
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include "net_tools.h"
#include "evt_core.h"
#include "packet.h"
2019-03-28 10:47:14 +00:00
struct donar_params {
2019-04-01 12:16:41 +00:00
int opt, is_server, is_client, is_waiting_bootstrap, is_healing, errored, verbose;
2019-03-28 10:47:14 +00:00
char *port, *onion_file, *algo;
GPtrArray *remote_ports, *exposed_ports;
};
2019-02-19 18:15:37 +00:00
void init_udp_remote(char* port, struct evt_core_ctx* evts);
void init_udp_exposed(char* port, struct evt_core_ctx* evts);
2019-03-28 10:47:14 +00:00
void donar_init_params(struct donar_params* dp);