Commit Graph

33 Commits (7caa87862ee8eaf3c93609d1f7d31bada3517361)

Author SHA1 Message Date
Thomas Winget 7caa87862e standardize include format and pragma once
All #ifndef guards on headers have been removed, I think,
in favor of #pragma once

Headers are now included as `#include "filename"` if the included file
resides in the same directory as the file including it, or any
subdirectory therein.  Otherwise they are included as
`#include <project/top/dir/relative/path/filename>`

The above does not include system/os headers.
3 years ago
Jeff Becker df4ea34a56
nodedb refactor
* bump zmq static dep
* lokimq -> oxenmq
* llarp_nodedb -> llarp::NodeDB
* remove all crufty api parts of NodeDB
* make NodeDB rc selection api not suck
* make path builder api not suck
* propagate all above changes so that unit tests work and it all compiles
3 years ago
Stephen Shelton 273270916e
The Great Wall of Blame
This commit reflects changes to clang-format rules. Unfortunately,
these rule changes create a massive change to the codebase, which
causes an apparent rewrite of git history.

Git blame's --ignore-rev flag can be used to ignore this commit when
attempting to `git blame` some code.
4 years ago
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.
4 years ago
Thomas Winget 84a1d7dbcc clang format....... 4 years ago
Jeff Becker e7689b40a7 dht pub intro message router event thiny doo 4 years ago
Stephen Shelton 321314b456
Remove re-propagation of introsets when we are wrong candidate 4 years ago
Stephen Shelton 9be8050854
Make format 4 years ago
Stephen Shelton 886a981997
Consolidate introset publishing constants 4 years ago
Jeff Becker e3b5fb4dd9
add local publish intro message to send reply down path 4 years ago
Jeff Becker b4a59a0b1a
make format 4 years ago
Jeff Becker dd21cba1fe
dedup via txid not keyspace location 4 years ago
Stephen Shelton 638ea2e0fd
Make format 4 years ago
Stephen Shelton d09fd13dd6
Calculate 'candidateNumber' when we should store Introset 4 years ago
Stephen Shelton 62014de91c
Handle PubIntro relayOrder logic on client-side 4 years ago
Stephen Shelton a8623f09e9
Properly deserialize PubIntroMessages' relayed var 4 years ago
Stephen Shelton 4c499fb076
Make format 4 years ago
Stephen Shelton 6966168f5a
Minor improvements to DHT inroset propagation 4 years ago
Stephen Shelton dff9aeb250
Propagate Introset publishing redundantly 4 years ago
Jeff Becker 99eb7726ff
initial dht key blinding 4 years ago
Jeff Becker 2c0dc12f39
refactor single char variables in DHT (mostly) 4 years ago
Michael 16cdfbd5f0
clang-tidy modernize pass 5 years ago
Michael d6751e3eeb
Move subset of messages to right directory 5 years ago
Michael 491fee206b
Port code to use CryptoManager over passing Crypto pointers 5 years ago
Michael 13a9f65520
Fully define interface for dht::Context 5 years ago
Michael a00d6afc5e
Convert llarp_buffer_t to be a class with methods 5 years ago
Michael 048fa83c39
Finish replacement of Router with AbstractRouter 5 years ago
Michael 729cd045f1
Convert llarp::Router into an abstract base class 5 years ago
Ryan Tharp 4bf4faa956 make format 5 years ago
Michael 2de621b0ad
Disable copy constructing llarp_buffer_t 5 years ago
Michael f24f554a01
Convert llarp::Crypto into an abstract base class 5 years ago
Michael 7296ebcbe8
Tidy dht code 5 years ago
Michael 4257b62e88
Add .cpp files for all .hpp files 6 years ago