tor_multipath_voip/src/donar_server.h
2019-04-24 16:23:41 +02:00

23 lines
472 B
C

#pragma once
#include <stdio.h>
#include <stdlib.h>
#include <sys/epoll.h>
#include <errno.h>
#include <gmodule.h>
#include "socks5.h"
#include "tor_os.h"
#include "tor_ctl.h"
#include "evt_core.h"
#include "donar_init.h"
#include "proxy.h"
#define PORT_SIZE 8
struct donar_server_ctx {
struct tor_os_str tos;
struct tor_ctl tctl;
struct evt_core_ctx evts;
uint16_t ports[PORT_SIZE];
};
void donar_server(struct donar_server_ctx* ctx, struct donar_params* dp);