remote_connect_thread
static void *remote_connect_thread(void *arg);
pthread_create(&conn->td, NULL, remote_connect_thread, conn);