Annotation of mqtt/inc/defs.h, revision 1.1.1.1.2.5
1.1 misho 1: #ifndef __DEFS_H
2: #define __DEFS_H
3:
4:
1.1.1.1.2.5! misho 5: #define STRSIZ 256
! 6: #define MQTTMSG_MAX 65529
! 7: #define WILDCARDS "/#+"
! 8:
! 9: #define MQTT_DATA_MAX 268435455
! 10: #define MQTT_CONN_STR "MQIsdp"
! 11: #define MQTT_PROTO_VER 3
! 12: #define MQTT_KEEPALIVE 10
! 13:
! 14: #define MQTT_TYPE_UNKNOWN 0 /* reserved */
! 15: #define MQTT_TYPE_CONNECT 1 /* client request to connect to server */
! 16: #define MQTT_TYPE_CONNACK 2 /* connect acknowledgment */
! 17: #define MQTT_TYPE_PUBLISH 3 /* publish message */
! 18: #define MQTT_TYPE_PUBACK 4 /* publish acknowledgment */
! 19: #define MQTT_TYPE_PUBREC 5 /* publish received (assured delivery part 1) */
! 20: #define MQTT_TYPE_PUBREL 6 /* publish release (assured delivery part 2) */
! 21: #define MQTT_TYPE_PUBCOMP 7 /* publish complete (assured delivery part 3) */
! 22: #define MQTT_TYPE_SUBSCRIBE 8 /* client subscribe request */
! 23: #define MQTT_TYPE_SUBACK 9 /* subscribe acknowledgment */
! 24: #define MQTT_TYPE_UNSUBSCRIBE 10 /* client unsubscribe request */
! 25: #define MQTT_TYPE_UNSUBACK 11 /* unsubscribe acknowledgment */
! 26: #define MQTT_TYPE_PINGREQ 12 /* PING request */
! 27: #define MQTT_TYPE_PINGRESP 13 /* PING response */
! 28: #define MQTT_TYPE_DISCONNECT 14 /* client is disconnecting */
! 29: #define MQTT_TYPE_RESERVED 15 /* reserved */
! 30:
1.1 misho 31:
1.1.1.1.2.1 misho 32: #define LOGERR { \
33: mqtt_Errno = errno; \
34: strlcpy(mqtt_Error, strerror(errno), sizeof mqtt_Error); \
35: }
36:
1.1 misho 37:
1.1.1.1.2.2 misho 38: inline void mqtt_SetErr(int eno, char *estr, ...);
39:
40:
1.1 misho 41: #endif
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>