This commit is contained in:
Cedric Roux
2016-05-31 17:18:30 +02:00
parent 6b9db37802
commit b6854b15b8
-11
View File
@@ -95,22 +95,11 @@ static void *forward_s_to_sc(void *_f)
return NULL;
}
static void *forward_sc_to_s(void *_f)
{
#if 0
forward_data *f = _f;
do_forward(f, f->sc, f->s, 1);
printf("INFO: forwarder exits\n");
#endif
return NULL;
}
void forward_start_client(void *_f, int s)
{
forward_data *f = _f;
f->sc = s;
new_thread(forward_s_to_sc, f);
new_thread(forward_sc_to_s, f);
}
void *forwarder(char *ip, int port)