File:  [ELWIX - Embedded LightWeight unIX -] / mqtt / inc / defs.h
Revision 1.2.2.2: download - view: text, annotated - select for diffs - revision graph
Tue Apr 24 13:54:50 2012 UTC (12 years, 2 months ago) by misho
Branches: mqtt1_1
start rework accept connection state machine

    1: #ifndef __DEFS_H
    2: #define __DEFS_H
    3: 
    4: 
    5: #define STRSIZ			256
    6: #define INIT_SNDQ		50
    7: #if 0
    8: #define WILDCARDS		"/#+"
    9: #define MQTT_CONNFLGS_INIT	{ 1, 1, 1, 3, 1, 1, 1 }
   10: 
   11: #define MQTT_DATA_MAX		268435455
   12: #define MQTT_CONN_STR		"MQIsdp"
   13: #define MQTT_PROTO_VER		3
   14: #define MQTT_KEEPALIVE		10
   15: #define MQTT_DEFAULT_MSGID	0xDEBA
   16: #endif
   17: 
   18: #define DEFAULT_RETRY		1
   19: #define DEFAULT_CONFIG		"/etc/mqtt.conf"
   20: #define MQTT_PORT		"1883"
   21: #define MQTT_HOST		"localhost"
   22: #define MQTT_USER		"mqtt"
   23: 
   24: 
   25: extern char cliCmd[], *cliStr[];
   26: 
   27: extern volatile intptr_t Kill;
   28: 
   29: extern struct tagCallbacks call;
   30: extern sqlite3 *acc, *pub;
   31: extern FILE *logg;
   32: 
   33: 
   34: #endif

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