mirror of
https://github.com/ChronosX88/Influence-cjdns.git
synced 2024-11-23 15:42:18 +00:00
Removed func "addContact" (it's will be added in the future) and added
private func "sendPing".
This commit is contained in:
parent
8b5f51c6f5
commit
a453e47041
@ -1,6 +1,10 @@
|
|||||||
#include "contactmanager.h"
|
#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);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user