diff --git a/src/contactmanager.cpp b/src/contactmanager.cpp index 80ff09a..64baeaa 100644 --- a/src/contactmanager.cpp +++ b/src/contactmanager.cpp @@ -1,6 +1,10 @@ #include "contactmanager.h" -ContactManager::addContact() +ContactManager::sendPing(QHostAddress ip) { - + json ping; + ping["peerID"] = QHostAddress::AnyIPv6.toString(); + ping["action"] = "ping"; + QString str = ping.dump(); + send(str, ip); }