tor_multipath_voip/src/donar_client.h
2020-02-01 20:21:41 +01:00

23 lines
485 B
C

#pragma once
#include <stdio.h>
#include <stdlib.h>
#include <gmodule.h>
#include "tor_os.h"
#include "socks5.h"
#include "proxy.h"
#include "donar_init.h"
#include "timer.h"
#define CLIENT_PORT_SIZE 64
struct donar_client_ctx {
struct tor_os_str tos;
struct evt_core_ctx evts;
uint16_t ports[CLIENT_PORT_SIZE];
struct {
int fd;
enum socks5_state state;
} client_sock[CLIENT_PORT_SIZE];
};
void donar_client(struct donar_client_ctx* ctx, struct donar_params* dp);