{"action":"created","issue":{"url":"https://api.github.com/repos/savoirfairelinux/opendht/issues/23","labels_url":"https://api.github.com/repos/savoirfairelinux/opendht/issues/23/labels{/name}","comments_url":"https://api.github.com/repos/savoirfairelinux/opendht/issues/23/comments","events_url":"https://api.github.com/repos/savoirfairelinux/opendht/issues/23/events","html_url":"https://github.com/savoirfairelinux/opendht/issues/23","id":121906230,"number":23,"title":"Examples do not work","user":{"login":"NicoHood","id":6888294,"avatar_url":"https://avatars.githubusercontent.com/u/6888294?v=3","gravatar_id":"","url":"https://api.github.com/users/NicoHood","html_url":"https://github.com/NicoHood","followers_url":"https://api.github.com/users/NicoHood/followers","following_url":"https://api.github.com/users/NicoHood/following{/other_user}","gists_url":"https://api.github.com/users/NicoHood/gists{/gist_id}","starred_url":"https://api.github.com/users/NicoHood/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NicoHood/subscriptions","organizations_url":"https://api.github.com/users/NicoHood/orgs","repos_url":"https://api.github.com/users/NicoHood/repos","events_url":"https://api.github.com/users/NicoHood/events{/privacy}","received_events_url":"https://api.github.com/users/NicoHood/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-12-13T08:03:12Z","updated_at":"2015-12-14T17:01:12Z","closed_at":null,"body":"I am opening a new ticket to separate the issues.\r\n\r\nSo I now compiled the library with success. I tried to run all 3 examples in `/tools`.\r\n\r\n#### The chat\r\n\r\nI can join a chat with `c test`. Then I type stuff in it. I expect if others do the same thing they should receive it. Now I started a VM with internet access and the same setup, but It cannot receive the messages.\r\n\r\n### Scanner\r\n\r\nThe scanner just does this and nothing more:\r\n```\r\nPrograms/opendht/tools$ ./dhtscanner \r\nOpenDht node b985cfea3054d3c61b94d1f32e0c58d901ed53f5 running on port 0\r\nScanning network...\r\nstep at 0000000000000000000000000000000000000001, depth 0\r\n```\r\n\r\n### Node\r\n\r\n```\r\nPrograms/opendht/tools$ ./dhtnode \r\nOpenDht node 6a863eb8b55b0c1e26f73c1b60355de8e34c6430 running on port 41566\r\n (type 'h' or 'help' for a list of possible commands)\r\n\r\n>> lr\r\nIPv4 routing table:\r\n0000000000000000000000000000000000000000 count 0 age -9223367400 sec\r\n\r\nIPv6 routing table:\r\n0000000000000000000000000000000000000000 count 0 age -9223367400 sec\r\n\r\n>> p test value\r\nSyntax error: invalid InfoHash.\r\n>> g test\r\nSyntax error: invalid InfoHash.\r\n>> ll\r\nOpenDht node 6a863eb8b55b0c1e26f73c1b60355de8e34c6430 running on port 41566\r\nIPv4 nodes : 0 good, 0 dubious, 0 incoming.\r\nIPv6 nodes : 0 good, 0 dubious, 0 incoming.\r\n```\r\n\r\nI hope those pastes are not of any secret. As far as I understood the private key is generated at runtime and discarded afterwards (in this example). The keys `6a863eb8b55b0c1e26f73c1b60355de8e34c6430` are just node identifiers. Or would it be a problem If I post such information here?"},"comment":{"url":"https://api.github.com/repos/savoirfairelinux/opendht/issues/comments/164494881","html_url":"https://github.com/savoirfairelinux/opendht/issues/23#issuecomment-164494881","issue_url":"https://api.github.com/repos/savoirfairelinux/opendht/issues/23","id":164494881,"user":{"login":"NicoHood","id":6888294,"avatar_url":"https://avatars.githubusercontent.com/u/6888294?v=3","gravatar_id":"","url":"https://api.github.com/users/NicoHood","html_url":"https://github.com/NicoHood","followers_url":"https://api.github.com/users/NicoHood/followers","following_url":"https://api.github.com/users/NicoHood/following{/other_user}","gists_url":"https://api.github.com/users/NicoHood/gists{/gist_id}","starred_url":"https://api.github.com/users/NicoHood/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NicoHood/subscriptions","organizations_url":"https://api.github.com/users/NicoHood/orgs","repos_url":"https://api.github.com/users/NicoHood/repos","events_url":"https://api.github.com/users/NicoHood/events{/privacy}","received_events_url":"https://api.github.com/users/NicoHood/received_events","type":"User","site_admin":false},"created_at":"2015-12-14T17:01:12Z","updated_at":"2015-12-14T17:01:12Z","body":"For the wiki page:\r\nI think just putting the readme in there would be a simple idea for those who dont have the code compiled and are just finding out what this is all about.\r\n\r\nHowever I still dont get how to use the get and put functions. An example would be nice. In the wiki at least. That is how I tried:\r\n```\r\n>> p test test\r\nSyntax error: invalid InfoHash.\r\n>> p \"test\" test\r\nSyntax error: invalid InfoHash.\r\n>> p\r\nSyntax error: invalid InfoHash.\r\n>> g test\r\nSyntax error: invalid InfoHash.\r\n>> \r\n```\r\n\r\n\r\nFor the program examples:\r\nThanks for the information, I will try that all out. Its a bit more complex c++11 stuff, at least I am new to this syntax. I've coded mostly on microcontrollers before.\r\n\r\n@aberaud Do you think this opendht connection could be realized on a microcontroller such as the ESP8266? Its a 160mhz 32bit mcu, without any os (RTOS or realtime, nothing more) and a builtin wlan adapter. Oh an I wrote you an email, I guess you saw it."}}