|
|
|
@ -28,6 +28,7 @@ Contributors:
|
|
|
|
|
#include "memory_mosq.h"
|
|
|
|
|
#include "mosquitto_internal.h"
|
|
|
|
|
#include "mosquitto.h"
|
|
|
|
|
#include "util_mosq.h"
|
|
|
|
|
|
|
|
|
|
#ifdef WITH_SRV
|
|
|
|
|
static void srv_callback(void *arg, int status, int timeouts, unsigned char *abuf, int alen)
|
|
|
|
@ -91,7 +92,7 @@ int mosquitto_connect_srv(struct mosquitto *mosq, const char *host, int keepaliv
|
|
|
|
|
mosquitto__free(h);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
mosquitto__set_state(mosq_cs_connect_srv);
|
|
|
|
|
mosquitto__set_state(mosq, mosq_cs_connect_srv);
|
|
|
|
|
|
|
|
|
|
mosq->keepalive = keepalive;
|
|
|
|
|
|
|
|
|
|