mirror of
https://github.com/savoirfairelinux/opendht.git
synced 2026-11-08 12:28:42 +00:00
add DhtMessage type for node-to-node communication
This commit is contained in:
1 parent
4452452efb
commit
cb2d14e905
4 files changed
+98
-28
No files matched your search
+1
-1
@@ -276,7 +276,7 @@ main(int argc, char **argv)
|
||||
else if (op == "a") {
|
||||
in_port_t port;
|
||||
iss >> port;
|
||||
dht.put(id, dht::Value {dht::ServiceAnnouncement::TYPE.id, dht::ServiceAnnouncement(port)}, [](bool ok) {
|
||||
dht.put(id, dht::Value {dht::IpServiceAnnouncement::TYPE.id, dht::IpServiceAnnouncement(port)}, [](bool ok) {
|
||||
std::cout << "Announce done !" << ok << std::endl;
|
||||
});
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user