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

version 1.1.2.12, 2011/12/05 17:05:38 version 1.1.2.13, 2011/12/05 22:17:39
Line 42  main() Line 42  main()
         printf("puback=%d/%d\n", m->msg_len, mqtt_msgPUBACK(m, 10));          printf("puback=%d/%d\n", m->msg_len, mqtt_msgPUBACK(m, 10));
         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 puback=%d\n", mqtt_readPUBACK(m));
         printf("pubrec=%d/%d\n", m->msg_len, mqtt_msgPUBREC(m, 11));          printf("pubrec=%d/%d\n", m->msg_len, mqtt_msgPUBREC(m, 11));
         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 pubrec=%d\n", mqtt_readPUBREC(m));
         printf("pubrel=%d/%d\n", m->msg_len, mqtt_msgPUBREL(m, 12));          printf("pubrel=%d/%d\n", m->msg_len, mqtt_msgPUBREL(m, 12));
         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 pubrel=%d\n", mqtt_readPUBREL(m));
         printf("pubcomp=%d/%d\n", m->msg_len, mqtt_msgPUBCOMP(m, 13));          printf("pubcomp=%d/%d\n", m->msg_len, mqtt_msgPUBCOMP(m, 13));
         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 pubcomp=%d\n", mqtt_readPUBCOMP(m));
   
         /* sub* */          /* sub* */
         memset(s, 0, sizeof s);          memset(s, 0, sizeof s);
Line 75  main() Line 79  main()
         printf("unsuback=%d/%d\n", m->msg_len, mqtt_msgUNSUBACK(m, 10));          printf("unsuback=%d/%d\n", m->msg_len, mqtt_msgUNSUBACK(m, 10));
         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 unsuback=%d\n", mqtt_readUNSUBACK(m));
   
         /* ping* */          /* ping* */
         printf("pingreq=%d/%d\n", m->msg_len, mqtt_msgPINGREQ(m));          printf("pingreq=%d/%d\n", m->msg_len, mqtt_msgPINGREQ(m));

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


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