version 1.2.2.15, 2012/06/20 14:51:38
|
version 1.2.2.16, 2012/06/20 15:01:30
|
Line 73 Subscribe(int sock, FILE *lf)
|
Line 73 Subscribe(int sock, FILE *lf)
|
printf("OK\n"); |
printf("OK\n"); |
|
|
for (sub = args->subscr, qos = qoses; sub->sub_topic.msg_base; sub++, qos++) |
for (sub = args->subscr, qos = qoses; sub->sub_topic.msg_base; sub++, qos++) |
printf(" + Topic %s with QoS %d subscribed %s\n", (char*) | printf(" + Topic %s with QoS %d subscribe %s\n", (char*) |
sub->sub_topic.msg_base, sub->sub_ret, *qos ? "done" : "failed"); |
sub->sub_topic.msg_base, sub->sub_ret, *qos ? "done" : "failed"); |
|
|
free(qoses); |
free(qoses); |