Removed func "addContact" (it's will be added in the future) and added

private func "sendPing".
This commit is contained in:
Denis Davydov 2018-05-20 15:14:45 +03:00
parent 8b5f51c6f5
commit a453e47041

View File

@ -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);
}