/* Sleep for our keepalive value. publish() etc. will wake us up. */ fprintf(stderr, "thread entering loop forever\n"); int rc = mosquitto_loop_forever(mosq, mosq->keepalive*1000, 1); fprintf(stderr, "oh shit, thread loop forever finished: %s\n", mosquitto_strerror(rc)); } ...
则返回MOSQ_ERR_NOT_SUPPORTED”。这将导致be because“Windows上的libmosquito当前编译时没有线程支持”。