#include "MQTTClient.h"#include <string.h>#include <stdlib.h>#include <sys/time.h>#include <sys/socket.h>#include <unistd.h>#include <errno.h>#include <stdarg.h>#include <time.h>#include <sys/timeb.h>
Go to the source code of this file.
Classes | |
| struct | Options |
Macros | |
| #define | ARRAY_SIZE(a) (sizeof(a) / sizeof(a[0])) |
| #define | assert(a, b, c, d) myassert(__FILE__, __LINE__, a, b, c, d) |
| #define | assert1(a, b, c, d, e) myassert(__FILE__, __LINE__, a, b, c, d, e) |
| #define | LOGA_DEBUG 0 |
| #define | LOGA_INFO 1 |
| #define | mqsleep sleep |
| #define | START_TIME_TYPE struct timeval |
Functions | |
| long | elapsed (START_TIME_TYPE start_time) |
| void | getopts (int argc, char **argv) |
| int | main (int argc, char **argv) |
| void | myassert (char *filename, int lineno, char *description, int value, char *format,...) |
| void | MyLog (int LOGA_level, char *format,...) |
| START_TIME_TYPE | start_clock (void) |
| int | test1 (struct Options options) |
| int | test2 (struct Options options) |
| void | test2_deliveryComplete (void *context, MQTTClient_deliveryToken dt) |
| int | test2_messageArrived (void *context, char *topicName, int topicLen, MQTTClient_message *m) |
| void | usage (void) |
| void | write_test_result (void) |
Variables | |
| char * | cur_output = output |
| int | failures = 0 |
| START_TIME_TYPE | global_start_time |
| struct Options | options |
| char | output [3000] |
| volatile int | test2_arrivedcount = 0 |
| int | test2_deliveryCompleted = 0 |
| MQTTClient_message | test2_pubmsg = MQTTClient_message_initializer |
| int | tests = 0 |
| FILE * | xml |
MQTT 3.1.1 Tests for the synchronous Paho MQTT C client
Definition in file test_mqtt4sync.c.
| #define ARRAY_SIZE | ( | a | ) | (sizeof(a) / sizeof(a[0])) |
Definition at line 53 of file test_mqtt4sync.c.
Definition at line 225 of file test_mqtt4sync.c.
Definition at line 226 of file test_mqtt4sync.c.
| #define LOGA_DEBUG 0 |
Definition at line 137 of file test_mqtt4sync.c.
| #define LOGA_INFO 1 |
Definition at line 138 of file test_mqtt4sync.c.
| #define mqsleep sleep |
Definition at line 186 of file test_mqtt4sync.c.
| #define START_TIME_TYPE struct timeval |
Definition at line 187 of file test_mqtt4sync.c.
| long elapsed | ( | START_TIME_TYPE | start_time | ) |
Definition at line 214 of file test_mqtt4sync.c.
| void getopts | ( | int | argc, |
| char ** | argv | ||
| ) |
Definition at line 79 of file test_mqtt4sync.c.
| int main | ( | int | argc, |
| char ** | argv | ||
| ) |
Definition at line 465 of file test_mqtt4sync.c.
| void myassert | ( | char * | filename, |
| int | lineno, | ||
| char * | description, | ||
| int | value, | ||
| char * | format, | ||
| ... | |||
| ) |
Definition at line 250 of file test_mqtt4sync.c.
| void MyLog | ( | int | LOGA_level, |
| char * | format, | ||
| ... | |||
| ) |
Definition at line 142 of file test_mqtt4sync.c.
| START_TIME_TYPE start_clock | ( | void | ) |
Definition at line 189 of file test_mqtt4sync.c.
| int test1 | ( | struct Options | options | ) |
Definition at line 277 of file test_mqtt4sync.c.
| int test2 | ( | struct Options | options | ) |
Definition at line 396 of file test_mqtt4sync.c.
| void test2_deliveryComplete | ( | void * | context, |
| MQTTClient_deliveryToken | dt | ||
| ) |
Definition at line 381 of file test_mqtt4sync.c.
| int test2_messageArrived | ( | void * | context, |
| char * | topicName, | ||
| int | topicLen, | ||
| MQTTClient_message * | m | ||
| ) |
Definition at line 386 of file test_mqtt4sync.c.
| void usage | ( | void | ) |
Definition at line 55 of file test_mqtt4sync.c.
| void write_test_result | ( | void | ) |
Definition at line 236 of file test_mqtt4sync.c.
| char* cur_output = output |
Definition at line 233 of file test_mqtt4sync.c.
| int failures = 0 |
Definition at line 229 of file test_mqtt4sync.c.
| START_TIME_TYPE global_start_time |
Definition at line 231 of file test_mqtt4sync.c.
| struct Options options |
| char output[3000] |
Definition at line 232 of file test_mqtt4sync.c.
| volatile int test2_arrivedcount = 0 |
Definition at line 377 of file test_mqtt4sync.c.
| int test2_deliveryCompleted = 0 |
Definition at line 378 of file test_mqtt4sync.c.
| MQTTClient_message test2_pubmsg = MQTTClient_message_initializer |
Definition at line 379 of file test_mqtt4sync.c.
| int tests = 0 |
Definition at line 228 of file test_mqtt4sync.c.
| FILE* xml |
Definition at line 230 of file test_mqtt4sync.c.