Do not create TCP middleware thread
SCION TCP is currently not supported so do not create a thread for it.
@@ -121,7 +121,6 @@ static chk_input *chk_udp_input;
static zlog_category_t *zc;
void handle_signal(int signal);
-int init_tcpmw();
int run();
int create_sockets();
@@ -207,9 +206,6 @@ int main(int argc, char **argv)
if (create_sockets() < 0)
return -1;
- if (init_tcpmw() < 0)
- return -1;
-
res = run();
/* Would only get down here if poll failed */
@@ -401,18 +397,6 @@ int bind_data_sockets()
return 0;
}
-int init_tcpmw()
-{
- pthread_t tid;
- tcp_scion_output = &send_data;
- zc_tcp = zc;
- if (pthread_create(&tid, NULL, &tcpmw_main_thread, NULL)) {
- zlog_fatal(zc, "pthread_create(): %s", strerror(errno));
- return -1;
- }
- return 0;
-}
-
int run()
{
while (1) {
