File:  [ELWIX - Embedded LightWeight unIX -] / mqtt / inc / mqtt.h
Revision 1.1.2.8: download - view: text, annotated - select for diffs - revision graph
Thu Dec 29 14:13:13 2011 UTC (12 years, 6 months ago) by misho
Branches: mqtt1_0
fix mqttd to handle sigpipe :)
add file mgmt to publish

    1: #ifndef __MQTT_H
    2: #define __MQTT_H
    3: 
    4: 
    5: struct tagArgs {
    6: 	io_sockaddr_t	addr;
    7: 	u_short		ka;
    8: 	mqtt_msg_t	*msg;
    9: 
   10: 	ait_val_t	ConnID;
   11: 	ait_val_t	User;
   12: 	ait_val_t	Pass;
   13: 
   14: 	struct {
   15: 		ait_val_t	Topic;
   16: 		ait_val_t	Msg;
   17: 	} Will;
   18: 
   19: 	u_char		Dup;
   20: 	u_char		Retain;
   21: 	u_char		QoS;
   22: 	u_char		notClear;
   23: 
   24: 	struct {
   25: 		FILE		*isFile;
   26: 		ait_val_t	Value;
   27: 	};
   28: 
   29: 	ait_val_t	Publish;
   30: 
   31: 	array_t		*Subscribes;
   32: 
   33: 	void		(*free)(struct tagArgs*);
   34: };
   35: 
   36: extern struct tagArgs *args;
   37: 
   38: 
   39: #endif

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