File:  [ELWIX - Embedded LightWeight unIX -] / mqtt / src / Attic / mqtt.c
Revision 1.1.1.1.2.2: download - view: text, annotated - select for diffs - revision graph
Mon Nov 21 12:16:11 2011 UTC (12 years, 7 months ago) by misho
Branches: mqtt1_0
Diff to: branchpoint 1.1.1.1: preferred, colored
add file with conn*

#include "global.h"


int
main(int argc, char **argv)
{
	mqtt_msg_t *m;
	int i;

	m = mqtt_msgAlloc(0);
	printf("connect=%d/%d\n", m->msg_len, mqtt_msgCONNECT(m, "MRYN", NULL, NULL, NULL, NULL, 0, 0, 0));
	for (i = 0; i < m->msg_len; i++)
		printf("%d\n", ((u_char*) m->msg_base)[i]);
	mqtt_msgFree(&m, 42);
	return 0;
}

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