--- libaitmqtt/inc/mqttapi.h 2012/06/29 08:22:49 1.2.4.1 +++ libaitmqtt/inc/mqttapi.h 2012/06/29 08:44:34 1.2.4.2 @@ -3,7 +3,7 @@ * by Michael Pounov * * $Author: misho $ -* $Id: mqttapi.h,v 1.2.4.1 2012/06/29 08:22:49 misho Exp $ +* $Id: mqttapi.h,v 1.2.4.2 2012/06/29 08:44:34 misho Exp $ * ************************************************************************** The ELWIX and AITNET software is distributed under the following @@ -72,9 +72,11 @@ typedef struct { * @sock = Client socket from accept() * @buf = Message buffer * @timeout = timeout + * @nb = Non block socket * return: NULL error or !=NULL allocated server handle */ -mqtt_srv_t *mqtt_srv_cliInit(int sock, mqtt_msg_t * __restrict buf, unsigned short timeout); +mqtt_srv_t *mqtt_srv_cliInit(int sock, mqtt_msg_t * __restrict buf, + unsigned short timeout, int nb); /* * mqtt_srv_Fini() Finish MQTT server side support for clients *