Lines Matching refs:options
54 } options = variable
75 options.test_no = atoi(argv[count]); in getopts()
83 options.host = argv[count]; in getopts()
84 printf("\nSetting host to %s\n", options.host); in getopts()
93 options.port = atoi(argv[count]); in getopts()
94 printf("\nSetting port to %d\n", options.port); in getopts()
102 options.proxy_host = argv[count]; in getopts()
110 options.proxy_port = atoi(argv[count]); in getopts()
111 printf("\nSetting proxy port to %d\n", options.proxy_port); in getopts()
120 options.MQTTVersion = atoi(argv[count]); in getopts()
121 printf("setting MQTT version to %d\n", options.MQTTVersion); in getopts()
129 options.iterations = atoi(argv[count]); in getopts()
135 options.verbose = 1; in getopts()
156 if (LOGA_level == LOGA_DEBUG && options.verbose == 0) in MyLog()
344 int test1(struct Options options) in test1() argument
360 data.MQTTVersion = options.MQTTVersion; in test1()
374 rc = ipstack.connect(options.host, options.port); in test1()
400 rc = ipstack.connect(options.host, options.port); in test1()
421 int test2(struct Options options) in test2() argument
437 data.MQTTVersion = options.MQTTVersion; in test2()
451 rc = ipstack.connect(options.host, options.port); in test2()
472 rc = ipstack.connect(options.host, options.port); in test2()
493 rc = ipstack.connect(options.host, options.port); in test2()
508 rc = ipstack.connect(options.host, options.port); in test2()
585 int test3(struct Options options) in test3() argument
602 data.MQTTVersion = options.MQTTVersion; in test3()
619 rc = ipstack.connect(options.host, options.port); in test3()
643 rc = ipstack.connect(options.proxy_host, options.proxy_port); in test3()
673 rc = ipstack.connect(options.proxy_host, options.proxy_port); in test3()
713 rc = ipstack.connect(options.host, options.port); in test3()
737 rc = ipstack.connect(options.host, options.port); in test3()
803 int test6(struct Options options)
825 if (options.haconnections != NULL)
827 opts.serverURIs = options.haconnections;
828 opts.serverURIcount = options.hacount;
832 …rc = MQTTClient_create(&test6_c1, options.proxy_connection, "Client_1", MQTTCLIENT_PERSISTENCE_DEF…
849 …rc = MQTTClient_create(&test6_c2, options.connection, "Client_2", MQTTCLIENT_PERSISTENCE_DEFAULT, …
924 for (i = 0; i < options.iterations; ++i) in main()
926 if (options.test_no == 0) in main()
928 for (options.test_no = 1; options.test_no < ARRAY_SIZE(tests); ++options.test_no) in main()
929 rc += tests[options.test_no](options); /* return number of failures. 0 = test succeeded */ in main()
932 rc = tests[options.test_no](options); /* run just the selected test */ in main()