Experimental parallel testing for library.

This commit is contained in:
Roger A. Light
2018-04-16 10:02:22 +01:00
parent 5d2f5c25d7
commit ba71bc3b32
72 changed files with 355 additions and 95 deletions
+3 -1
View File
@@ -20,12 +20,14 @@ int main(int argc, char *argv[])
{
struct mosquittopp_test *mosq;
int port = atoi(argv[1]);
mosqpp::lib_init();
mosq = new mosquittopp_test("01-will-set");
mosq->will_set("topic/on/unexpected/disconnect", strlen("will message"), "will message", 1, true);
mosq->connect("localhost", 1888, 60);
mosq->connect("localhost", port, 60);
while(run == -1){
mosq->loop();