lokinet/llarp
Stephen Shelton ea835405c5
Refactor NotifyRouterEvent() to forward args, event code cleanup
This template-ifies Router::NotifyRouterEvent() up so that it accepts
the arguments to instantiate the specified event type, forwarding them
to std::make_unique. This would allow (in the future) the function to
no-op the call and avoid memory allocation. It also slightly reduces
the amount of code required to fire an event.

This commit also simplifies some of the RouterEvent code to reduce
redundancy.
2020-03-12 11:50:46 -06:00
..
android Produce hierarchy of 'libraries' inside libllarp 2019-01-15 23:15:43 +00:00
config clang format....... 2020-03-06 20:20:11 -05:00
consensus initial wack at 0.7.0 dht fixes 2020-01-27 11:54:51 -05:00
constants De-static constants 2020-03-01 12:40:15 -04:00
crypto Remove absl optimization 2020-02-24 14:27:44 -04:00
dht Refactor NotifyRouterEvent() to forward args, event code cleanup 2020-03-12 11:50:46 -06:00
dns handle snode and clean up codepath for hooked dns 2020-02-25 17:43:08 -05:00
ev clang format....... 2020-03-06 20:20:11 -05:00
exit remove Time_t, add operator overload for printing llarp_time_t and add to_json function for serializing llarp_time_t to json 2020-02-25 12:05:13 -05:00
handlers clang format....... 2020-03-06 20:20:11 -05:00
hook prepare for 0.5.0 2019-08-29 07:45:58 -04:00
iwp remove Time_t, add operator overload for printing llarp_time_t and add to_json function for serializing llarp_time_t to json 2020-02-25 12:05:13 -05:00
link llarp_time_t is now using std::chrono 2020-02-24 15:25:03 -05:00
linux Produce hierarchy of 'libraries' inside libllarp 2019-01-15 23:15:43 +00:00
messages Refactor NotifyRouterEvent() to forward args, event code cleanup 2020-03-12 11:50:46 -06:00
net 32-bit linux patches 2020-02-25 15:48:07 -06:00
path Refactor NotifyRouterEvent() to forward args, event code cleanup 2020-03-12 11:50:46 -06:00
router Refactor NotifyRouterEvent() to forward args, event code cleanup 2020-03-12 11:50:46 -06:00
routing Add some notes/comments about DHT message handling 2020-02-28 16:26:52 -07:00
rpc remove Time_t, add operator overload for printing llarp_time_t and add to_json function for serializing llarp_time_t to json 2020-02-25 12:05:13 -05:00
service Refactor NotifyRouterEvent() to forward args, event code cleanup 2020-03-12 11:50:46 -06:00
simulation make it compile 2020-03-03 19:57:09 -05:00
tooling Refactor NotifyRouterEvent() to forward args, event code cleanup 2020-03-12 11:50:46 -06:00
util clang format....... 2020-03-06 20:20:11 -05:00
win32 happy new year 2020-01-05 20:40:34 -06:00
app.xml stray tag ;-; 2018-12-24 22:39:34 -06:00
bootstrap.cpp add bootstrap list functionality and utility 2019-12-06 12:32:46 -05:00
bootstrap.hpp add bootstrap list functionality and utility 2019-12-06 12:32:46 -05:00
CMakeLists.txt some refactoring of tooling code, added RCGossipReceivedEvent 2020-03-03 19:57:09 -05:00
context.cpp clang format....... 2020-03-06 20:20:11 -05:00
nodedb.cpp llarp_time_t is now using std::chrono 2020-02-24 15:25:03 -05:00
nodedb.hpp llarp_time_t is now using std::chrono 2020-02-24 15:25:03 -05:00
pow.cpp llarp_time_t is now using std::chrono 2020-02-24 15:25:03 -05:00
pow.hpp llarp_time_t is now using std::chrono 2020-02-24 15:25:03 -05:00
profiling.cpp llarp_time_t is now using std::chrono 2020-02-24 15:25:03 -05:00
profiling.hpp llarp_time_t is now using std::chrono 2020-02-24 15:25:03 -05:00
router_contact.cpp llarp_time_t is now using std::chrono 2020-02-24 15:25:03 -05:00
router_contact.hpp some refactoring of tooling code, added RCGossipReceivedEvent 2020-03-03 19:57:09 -05:00
router_id.cpp PathRequestReceivedEvent implemented 2020-03-03 19:57:09 -05:00
router_id.hpp PathRequestReceivedEvent implemented 2020-03-03 19:57:09 -05:00
router_version.cpp Make format 2020-01-31 14:52:59 -07:00
router_version.hpp Make format 2020-01-31 14:52:59 -07:00
testnet.c prepare for 0.5.0 2019-08-29 07:45:58 -04:00