Commit Graph

14 Commits (quic-wip)

Author SHA1 Message Date
dr7ana 5b522e64d1 maybe a little green beans too 1 week ago
dr7ana ea6d62c340 libquic -> dr7ana/0rtt, etc 2 weeks ago
dr7ana dfa0e52e69 Aggregated bugfix commits and logging fixes
- Formatting concept to enable oxen-logging printing for custom objects was updated with libquic vbump to require boolean member variable
- Members added in base objects to be inherited through
2 months ago
dr7ana aae23c17ff Restructuring, session initiation
- combined {exit,service}::Endpoint into handlers::LocalEndpoint
- combined {exit,service}::Handler into handlers::RemoteHandler
- BaseSession subsumed {Client,Relay}Session -> OutboundSession
- Session initialization code underway
6 months ago
dr7ana 8cc152a3c0 C++ version, clang-format
- C++ bumped 17 -> 20
- clang-format (plus all clangs) -> 17
8 months ago
dr7ana b1f0f371d5 ToString is no longer camelcase because why would it be??? 8 months ago
dr7ana 25f13c905a deprecated byte_t (twas a dumb typedef anyways) 8 months ago
dr7ana b733415e68 formatting 8 months ago
dr7ana 5f8e1ada15 formatting 8 months ago
dr7ana f574cd798f Clang format include sorting + CMake
- includes are now sorted in consistent, logical order; first step in an attempt to fix the tomfoolery (no relation to Tom) brought in by include-what-you-use
- shuffled around some cmake linking to simplify dependency graph
- superfluous files removed
8 months ago
dr7ana c0b19de963 Review commit 8 months ago
Jason Rhinelander b81f7025c9
Replace logging with oxen-logger
Replaces custom logging system with spdlog-based oxen logging.  This
commit mainly replaces the backend logging with the spdlog-based system,
but doesn't (yet) convert all the existing LogWarn, etc. to use the new
format-based logging.

New logging statements will look like:

    llarp::log::warning(cat, "blah: {}", val);

where `cat` should be set up in each .cpp or cluster of .cpp files, as
described in the oxen-logging README.

As part of spdlog we get fmt, which gives us nice format strings, where
are applied generously in this commit.

Making types printable now requires two steps:
- add a ToString() method
- add this specialization:

      template <>
      constexpr inline bool llarp::IsToStringFormattable<llarp::Whatever> = true;

This will then allow the type to be printed as a "{}" value in a
fmt::format string.  This is applied to all our printable types here,
and all of the `operator<<` are removed.

This commit also:
- replaces various uses of `operator<<` to ToString()
- replaces various uses of std::stringstream with either fmt::format or
  plain std::string
- Rename some to_string and toString() methods to ToString() for
  consistency (and to work with fmt)
- Replace `stringify(...)` and `make_exception` usage with fmt::format
  (and remove stringify/make_exception from util/str.hpp).
2 years ago
Jeff Becker 4446f2fc16
fix and format.
* start moving quic code to use lokinet internals
3 years ago
Jason Rhinelander b61bd82b4b
Add llarp::buffer_printer for pretty buffer logs 3 years ago