Diff for /mqtt/example/Attic/cmds.c between versions 1.1.2.10 and 1.1.2.12

version 1.1.2.10, 2011/12/05 14:11:47 version 1.1.2.12, 2011/12/05 17:05:38
Line 29  main() Line 29  main()
         }          }
         printf("++> KA=%d sec, ConnID=%s User=%s Pass=%s Will_Topic=%s Will_Message=%s\n", ka,           printf("++> KA=%d sec, ConnID=%s User=%s Pass=%s Will_Topic=%s Will_Message=%s\n", ka, 
                         cid, user, pass, topic, message);                          cid, user, pass, topic, message);
         getchar();  
         printf("connack=%d/%d\n", m->msg_len, mqtt_msgCONNACK(m, 1));          printf("connack=%d/%d\n", m->msg_len, mqtt_msgCONNACK(m, 1));
         for (i = 0; i < m->msg_len; i++)          for (i = 0; i < m->msg_len; i++)
                 printf("%d\n", ((u_char*) m->msg_base)[i]);                  printf("%d\n", ((u_char*) m->msg_base)[i]);
           printf("read connack=%d\n", mqtt_readCONNACK(m));
           getchar();
   
         /* pub* */          /* pub* */
         printf("publish=%d/%d\n", m->msg_len, mqtt_msgPUBLISH(m, "AAA/bbb/CCC/ddd", 7, 0, 2, 0, "OLE!!!", 7));          printf("publish=%d/%d\n", m->msg_len, mqtt_msgPUBLISH(m, "AAA/bbb/CCC/ddd", 7, 0, 2, 0, "OLE!!!", 7));
Line 79  main() Line 80  main()
         printf("pingreq=%d/%d\n", m->msg_len, mqtt_msgPINGREQ(m));          printf("pingreq=%d/%d\n", m->msg_len, mqtt_msgPINGREQ(m));
         for (i = 0; i < m->msg_len; i++)          for (i = 0; i < m->msg_len; i++)
                 printf("%d\n", ((u_char*) m->msg_base)[i]);                  printf("%d\n", ((u_char*) m->msg_base)[i]);
           printf("read pingreq=%d\n", mqtt_readPINGREQ(m));
         printf("pingresp=%d/%d\n", m->msg_len, mqtt_msgPINGRESP(m));          printf("pingresp=%d/%d\n", m->msg_len, mqtt_msgPINGRESP(m));
         for (i = 0; i < m->msg_len; i++)          for (i = 0; i < m->msg_len; i++)
                 printf("%d\n", ((u_char*) m->msg_base)[i]);                  printf("%d\n", ((u_char*) m->msg_base)[i]);
           printf("read pingresp=%d\n", mqtt_readPINGRESP(m));
   
         printf("disconnect=%d/%d\n", m->msg_len, mqtt_msgDISCONNECT(m));          printf("disconnect=%d/%d\n", m->msg_len, mqtt_msgDISCONNECT(m));
         for (i = 0; i < m->msg_len; i++)          for (i = 0; i < m->msg_len; i++)
                 printf("%d\n", ((u_char*) m->msg_base)[i]);                  printf("%d\n", ((u_char*) m->msg_base)[i]);
           printf("read disconnect=%d\n", mqtt_readDISCONNECT(m));
   
         mqtt_msgFree(&m, 42);          mqtt_msgFree(&m, 42);
         return 0;          return 0;

Removed from v.1.1.2.10  
changed lines
  Added in v.1.1.2.12


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