local_send_thread
error = pthread_create(&td, NULL, local_send_thread, res);
static void *local_send_thread(void *arg);