cleanup
This commit is contained in:
@@ -95,22 +95,11 @@ static void *forward_s_to_sc(void *_f)
|
|||||||
return NULL;
|
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)
|
void forward_start_client(void *_f, int s)
|
||||||
{
|
{
|
||||||
forward_data *f = _f;
|
forward_data *f = _f;
|
||||||
f->sc = s;
|
f->sc = s;
|
||||||
new_thread(forward_s_to_sc, f);
|
new_thread(forward_s_to_sc, f);
|
||||||
new_thread(forward_sc_to_s, f);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void *forwarder(char *ip, int port)
|
void *forwarder(char *ip, int port)
|
||||||
|
|||||||
Reference in New Issue
Block a user