Diff for /libaitmqtt/inc/mqttapi.h between versions 1.2.4.1 and 1.3.2.1

version 1.2.4.1, 2012/06/29 08:22:49 version 1.3.2.1, 2012/06/29 15:23:10
Line 72  typedef struct { Line 72  typedef struct {
  * @sock = Client socket from accept()   * @sock = Client socket from accept()
  * @buf = Message buffer   * @buf = Message buffer
  * @timeout = timeout   * @timeout = timeout
    * @nb = Non block socket
  * return: NULL error or !=NULL allocated server handle   * 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   * mqtt_srv_Fini() Finish MQTT server side support for clients
  *   *
Line 127  int mqtt_srv_Listen(int sock, int maxconn, int nb); Line 129  int mqtt_srv_Listen(int sock, int maxconn, int nb);
  * return: -1 error, 0 host is alive, 1 timeout session or 2 broken session   * return: -1 error, 0 host is alive, 1 timeout session or 2 broken session
  */   */
 int mqtt_KeepAlive(int sock, unsigned short ka, unsigned char tries);  int mqtt_KeepAlive(int sock, unsigned short ka, unsigned char tries);
   /*
    * mqtt_WillMessage() - Publish WILL message
    *
    * @sock = connected socket
    * @ka = keep alive timeout
    * @topic = will topic
    * @data = will message
    * return: -1 error, 1 timeout, 2 not ack or 0 ok
    */
   int mqtt_WillMessage(int sock, unsigned short ka, const char *topic, const char *data);
   
   
 #ifdef API_CLIENT_SIDE  #ifdef API_CLIENT_SIDE

Removed from v.1.2.4.1  
changed lines
  Added in v.1.3.2.1


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>