Lines Matching refs:dump
233 static int connack(FILE *dump, curl_socket_t fd) in connack() argument
247 logprotocol(FROM_SERVER, "CONNACK", 2, dump, packet, sizeof(packet)); in connack()
256 static int suback(FILE *dump, curl_socket_t fd, unsigned short packetid) in suback() argument
271 logprotocol(FROM_SERVER, "SUBACK", 3, dump, packet, rc); in suback()
279 static int puback(FILE *dump, curl_socket_t fd, unsigned short packetid) in puback() argument
293 logprotocol(FROM_SERVER, dump, packet, rc); in puback()
302 static int disconnect(FILE *dump, curl_socket_t fd) in disconnect() argument
311 logprotocol(FROM_SERVER, "DISCONNECT", 0, dump, packet, rc); in disconnect()
388 static int publish(FILE *dump, in publish() argument
440 logprotocol(FROM_SERVER, "PUBLISH", remaininglength, dump, packet, rc); in publish()
503 FILE *dump; in mqttit() local
512 dump = fopen(dumpfile, "ab"); in mqttit()
513 if(!dump) in mqttit()
562 dump, buffer, rc); in mqttit()
611 if(connack(dump, fd)) { in mqttit()
621 dump, buffer, rc); in mqttit()
649 if(suback(dump, fd, packet_id)) { in mqttit()
655 if(publish(dump, fd, packet_id, topic, data, datalen)) { in mqttit()
662 if(suback(dump, fd, packet_id)) { in mqttit()
670 publish(dump, fd, packet_id, topic, def, strlen(def)); in mqttit()
672 disconnect(dump, fd); in mqttit()
679 dump, buffer, rc); in mqttit()
687 puback(dump, fd, 0); in mqttit()
695 logprotocol(FROM_CLIENT, "DISCONNECT", 0, dump, buffer, rc); in mqttit()
707 if(dump) in mqttit()
708 fclose(dump); in mqttit()