From 0465243c710ede74a78885077140d8673efbc647 Mon Sep 17 00:00:00 2001 From: Determinant Date: Fri, 20 Jul 2018 20:08:59 -0400 Subject: improve msg & msg network interface --- test/test_msg.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'test') diff --git a/test/test_msg.cpp b/test/test_msg.cpp index 8b7528f..08be1ef 100644 --- a/test/test_msg.cpp +++ b/test/test_msg.cpp @@ -23,12 +23,13 @@ */ #include "salticidae/msg.h" +#include "salticidae/network.h" using salticidae::uint256_t; using salticidae::DataStream; using salticidae::get_hash; using salticidae::get_hex; - +/* struct MsgTest: public salticidae::MsgBase<> { using MsgBase::MsgBase; @@ -58,8 +59,10 @@ struct MsgTest: public salticidae::MsgBase<> { } } }; +*/ int main() { + /* MsgTest msg; msg.gen_ping(1234); printf("%s\n", std::string(msg).c_str()); @@ -72,5 +75,7 @@ int main() { } catch (std::runtime_error &e) { printf("caught: %s\n", e.what()); } + */ + salticidae::PeerNetwork<> pn(salticidae::EventContext()); return 0; } -- cgit v1.2.3-70-g09d2