aboutsummaryrefslogtreecommitdiffstats
path: root/net.cpp
diff options
context:
space:
mode:
authorsubtly <subtly@users.noreply.github.com>2014-12-20 05:40:44 +0800
committersubtly <subtly@users.noreply.github.com>2014-12-20 05:40:44 +0800
commit16ba69ae780179d327bf05e164a3e176127ee462 (patch)
tree561c59b7132d010e217cc065e1bf1143504b6a72 /net.cpp
parent4588bfba6655698396cf067d251a849ad4dfd7c1 (diff)
downloaddexon-solidity-16ba69ae780179d327bf05e164a3e176127ee462.tar.gz
dexon-solidity-16ba69ae780179d327bf05e164a3e176127ee462.tar.zst
dexon-solidity-16ba69ae780179d327bf05e164a3e176127ee462.zip
fix the fix
Diffstat (limited to 'net.cpp')
-rw-r--r--net.cpp16
1 files changed, 1 insertions, 15 deletions
diff --git a/net.cpp b/net.cpp
index 34b20ccc..6e9efff1 100644
--- a/net.cpp
+++ b/net.cpp
@@ -20,6 +20,7 @@
*/
#include <boost/test/unit_test.hpp>
+#include <libdevcrypto/Common.h>
#include <libdevcore/Worker.h>
#include <libp2p/UDP.h>
using namespace std;
@@ -28,21 +29,6 @@ using namespace dev::p2p;
namespace ba = boost::asio;
namespace bi = ba::ip;
-class Kademlia: UDPSocketEvents
-{
-public:
- Kademlia(): Worker("test",0), m_io(), m_socket(new UDPSocket<Kademlia, 1024>(m_io, *this, 30300)) {}
- ~Kademlia() { m_io.stop(); stopWorking(); }
-
- void onDisconnected(UDPSocketFace*) {};
- void onReceived(UDPSocketFace*, bi::udp::endpoint const& _from, bytesConstRef _packet) { if (_packet.toString() == "AAAA") success = true; }
-
- ba::io_service m_io;
- shared_ptr<UDPSocket<Kademlia, 1024>> m_socket;
-
- bool success = false;
-};
-
class TestA: UDPSocketEvents, public Worker
{
public: