File:  [ELWIX - Embedded LightWeight unIX -] / mqtt / inc / mqtt.h
Revision 1.2.2.3: download - view: text, annotated - select for diffs - revision graph
Tue May 1 22:19:29 2012 UTC (12 years, 2 months ago) by misho
Branches: mqtt1_1
rework mqtt_ping

    1: #ifndef __MQTT_H
    2: #define __MQTT_H
    3: 
    4: 
    5: #define API_CLIENT_SIDE
    6: #include <mqttapi.h>
    7: 
    8: 
    9: struct tagArgs {
   10: 	mqtt_cli_t	*cli;
   11: 	io_sockaddr_t	addr;
   12: 	u_short		ka;
   13: 	mqtt_msg_t	*msg;
   14: 
   15: 	ait_val_t	ConnID;
   16: 	ait_val_t	User;
   17: 	ait_val_t	Pass;
   18: 
   19: 	struct {
   20: 		ait_val_t	Topic;
   21: 		ait_val_t	Msg;
   22: 	} Will;
   23: 
   24: 	u_short		MsgID;
   25: 
   26: 	u_char		Dup;
   27: 	u_char		Retain;
   28: 	u_char		QoS;
   29: 	u_char		notClear;
   30: 
   31: 	struct {
   32: 		u_char		isFile;
   33: 		ait_val_t	Value;
   34: 	};
   35: 
   36: 	ait_val_t	Publish;
   37: 
   38: 	mqtt_subscr_t	*subscr;
   39: 
   40: 	void		(*free)(struct tagArgs*);
   41: };
   42: 
   43: extern struct tagArgs *args;
   44: 
   45: 
   46: #endif

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