From 523311da5a6a2488cc743f008b54bfe7ccfbb0d4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adrien=20B=C3=A9raud?= <adrien.beraud@savoirfairelinux.com> Date: Thu, 20 Nov 2014 01:47:51 -0500 Subject: [PATCH] Update README.md --- README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 8433a9d0..a8f7c3ce 100644 --- a/README.md +++ b/README.md @@ -25,18 +25,18 @@ TODO Examples - ```c++ -dht::DhtRunner dht; +dht::DhtRunner node; // Launch a new dht node using generated RSA keys, // and listen on port 4222. -dht.run(4222, dht::crypto::generateIdentity()); +node.run(4222, dht::crypto::generateIdentity()); // put some data on the dht std::vector<uint8_t> some_data(5, 10); -dht.put("unique_key", some_data); +node.put("unique_key", some_data); // get data from the dht -dht.get("other_unique_key", [](const std::vector<std::shared_ptr<Value>>& values) { +node.get("other_unique_key", [](const std::vector<std::shared_ptr<Value>>& values) { // Callback called when values are found for (const auto& value : values) std::cout << "Found value: " << value << std::endl; -- GitLab