Commit Graph

24 Commits (a51576d1ea1e0969013d4b3e796adfa6886802ab)

Author SHA1 Message Date
Jeff Becker 5c457ff486
refactor logging to use std::source_location
* use std::source_location instead of godawful macros in logging
* remove unused/absolutely haram af json logstream
* fix bug in android logger where it doesn't respect eLogNone
3 years ago
Jeff Becker b721b8d65b
finish wiring up config for #1595 3 years ago
Jeff Becker fedc56e3f1
initial commit for #1595 3 years ago
Jason Rhinelander 0339bd941a Convert protocol type to enum class 4 years ago
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.
4 years ago
Jeff 34c7f0da0d
profiles.dat is always relative so if you spawn lokinet in / then it will error about permissions. (#1449)
* use absolute path for profiles.dat.

* remove old bencoding bits to use const fs::path instead of const char *
4 years ago
Rick V 1340cd0dce remove some string conversions entirely 4 years ago
Jason Rhinelander ebd2142114 Don't use std::optional::value() because f u macos
This replaces all use of std::optional's `opt.value()` with `*opt`
because macOS is great and the ghost of Steve Jobs says that actually
supporting std::optional's value() method is not for chumps before macOS
10.14.  So don't use it because Apple is great.

Pretty much all of our use of it actually is done better with operator*
anyway (since operator* doesn't do a check that the optional has a
value).

Also replaced *most* of the `has_value()` calls with direct bool
context, except for one in the config section which looked really
confusing at a glance without a has_value().
4 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.
5 years ago
Jeff Becker d2d109e92c
llarp_time_t is now using std::chrono 5 years ago
Stephen Shelton 68d0cabcc5
Print an error when BDecodeReadFromFile() fails before calling DumpBuffer() 5 years ago
Jeff Becker 0afb3b320b
add bootstrap list functionality and utility 5 years ago
Stephen Shelton db56e17c23 Rename bencode function for clarity 5 years ago
Jason Rhinelander e0340e86b2 clang-format fixes 5 years ago
Jeff Becker bdb0b847f8
seek for version and set it before deserializing 5 years ago
Michael 1aec0dfa2b
Move logging to subdirectory 5 years ago
Jeff Becker b178aa1a36
make it compile and make it secure files 5 years ago
Michael 3f53965b71
Remove all use of IBEncodeMessage 5 years ago
Michael 7ca0927d8f
Replace dict_reader/list_reader with version which doesn't involve indirection 5 years ago
Michael 4143472a17
Add cmake module to target a library as 'system', and fix a few warnings 5 years ago
Michael a00d6afc5e
Convert llarp_buffer_t to be a class with methods 6 years ago
Michael f3b0af9d2f
Create CopyableBuffer type 6 years ago
Michael 2de621b0ad
Disable copy constructing llarp_buffer_t 6 years ago
Michael e5eda0fb8f
Move lokinet unspecific components to a util/ library 6 years ago