mirror of
https://github.com/oxen-io/lokinet.git
synced 2024-11-03 23:15:52 +00:00
74362149eb
we want to be able to have multiple locally bound dns sockets in lokinet so i restructured most of the dns subsystem in order to make this easier. specifically, we have a new structure to dns subsystem: * dns::QueryJob_Base base type for holding a dns query and response with virtual methods in charge of sending a reply to whoever requested. * dns::PacketSource_Base base type for reading and writing dns messages to and from wherever they came from * dns::Resolver_Base base type for filtering and handling of dns messages asynchronously. * dns::Server contextualized per endpoint dns object, responsible for all dns related isms. this change hides all impelementation details of all of the dns components. adds some more helper functions for parsing dns and dealing with OwnedBuffer. overall dns becomes less of a pain with this new structure. probably. |
||
---|---|---|
.. | ||
Catch2@dba29b60d6 | ||
config | ||
crypto | ||
dns | ||
hive | ||
mocks | ||
net | ||
nodedb | ||
path | ||
peerstats | ||
router | ||
routing | ||
service | ||
util | ||
win32 | ||
check_main.cpp | ||
CMakeLists.txt | ||
llarp_test.hpp | ||
readme.md | ||
test_llarp_encrypted_frame.cpp | ||
test_llarp_router_contact.cpp | ||
test_util.cpp | ||
test_util.hpp |
unit tests and such
to enable unit tests, add cmake flag -DWITH_TESTS=ON
unit tests can be built and run with the check
target.