tor_multipath_voip/src/donar_server.h
2019-02-11 16:23:20 +01:00

22 lines
439 B
C

#pragma once
#include <stdio.h>
#include <stdlib.h>
#include <sys/epoll.h>
#include <errno.h>
#include "socks5.h"
#include "tor_os.h"
#include "tor_ctl.h"
#define PORT_SIZE 10
#define MAX_EVENTS 10
struct donar_server_ctx {
struct tor_os_str tos;
struct tor_ctl tctl;
int connection_count;
uint16_t ports[PORT_SIZE];
int tcp_socks[PORT_SIZE];
int epollfd;
int is_server;
};
void donar_server(struct donar_server_ctx* ctx);