add DhtMessage type for node-to-node communication

This commit is contained in:
Adrien Béraud committed 2015-02-22 21:04:46 -05:00
1 parent 4452452efb
commit cb2d14e905
4 files changed
+98 -28

No files matched your search

+1 -1
View File
@@ -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;
});
}