Annotation of mqtt/src/mqtt.c, revision 1.1.1.1.2.2
1.1 misho 1: #include "global.h"
2:
3:
4: int
5: main(int argc, char **argv)
6: {
1.1.1.1.2.1 misho 7: mqtt_msg_t *m;
8: int i;
9:
1.1.1.1.2.2! misho 10: m = mqtt_msgAlloc(0);
! 11: printf("connect=%d/%d\n", m->msg_len, mqtt_msgCONNECT(m, "MRYN", NULL, NULL, NULL, NULL, 0, 0, 0));
1.1.1.1.2.1 misho 12: for (i = 0; i < m->msg_len; i++)
13: printf("%d\n", ((u_char*) m->msg_base)[i]);
14: mqtt_msgFree(&m, 42);
1.1 misho 15: return 0;
16: }
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>