tor_multipath_voip/src/donar_client.h

22 lines
479 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 "algo_skel.h"
#include "tor_os.h"
2019-02-12 20:45:15 +00:00
#include "socks5.h"
2019-02-11 09:23:38 +00:00
#define CLIENT_PORT_SIZE 10
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-02-15 17:09:51 +00:00
void donar_client(struct donar_client_ctx* ctx, struct algo_skel* as, char* onion_file, GPtrArray* ports);