recv_thread
error = pthread_create(&ctx->t_tid, NULL, recv_thread, ctx);
static void *recv_thread(void *);