tcp_thread
if ((terr = thr_create(0, 0, tcp_thread, NULL, 0, NULL)) != 0) {
static void *tcp_thread(void *);