send_thread
static void *send_thread(void *);
error = pthread_create(&ctx->t_tid, &attr, send_thread, ctx);