tor_multipath_voip/src/donar_client.h

23 lines
465 B
C
Raw Normal View History

2019-02-11 15:23:20 +00:00
#pragma once
2019-02-11 09:23:38 +00:00
#include <stdio.h>
#include <stdlib.h>
2019-02-15 17:09:51 +00:00
#include <gmodule.h>
#include "tor_os.h"
2019-02-12 20:45:15 +00:00
#include "socks5.h"
2019-04-24 14:23:41 +00:00
#include "proxy.h"
2019-02-19 18:15:37 +00:00
#include "donar_init.h"
2019-02-11 09:23:38 +00:00
2019-03-28 14:26:33 +00:00
#define CLIENT_PORT_SIZE 8
struct donar_client_ctx {
struct tor_os_str tos;
struct evt_core_ctx evts;
uint16_t ports[CLIENT_PORT_SIZE];
2019-02-15 14:45:56 +00:00
struct {
int fd;
enum socks5_state state;
} client_sock[CLIENT_PORT_SIZE];
};
2019-03-28 10:47:14 +00:00
void donar_client(struct donar_client_ctx* ctx, struct donar_params* dp);