autoconn_thread
pthread_create(&thread, NULL, autoconn_thread, NULL);
static void *autoconn_thread(void *data);