Commit Graph

43 Commits (273270916ea33b096753c5ad316f46a8268761bd)

Author SHA1 Message Date
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
Jeff Becker e155eb37b1
try fixing leak in libabyss 4 years ago
Jeff Becker 99c814e6b0
fix dns rebinding vuln in jsonrpc 4 years ago
Jason Rhinelander ac1486d0be Replace absl::optional with optional-lite
Step 1 of removing abseil from lokinet.

For the most part this is a drop-in replacement, but there are also a
few changes here to the JSONRPC layer that were needed to work around
current gcc 10 dev snapshot:

- JSONRPC returns a json now instead of an optional<json>.  It doesn't
  make any sense to have a json rpc call that just closes the connection
  with returning anything.  Invoked functions can return a null (default
  constructed) result now if they don't have anything to return (such a
  null value won't be added as "result").
4 years ago
Michael 1aec0dfa2b
Move logging to subdirectory 5 years ago
Jeff Becker 35bb7444fe
make tcp work with libuv probably 5 years ago
Jeff Becker 64c7ed42fc
make format 5 years ago
Jeff Becker 9c96aecf3f
move llarp::Logic to std::shared_ptr
add sequence numbers to HSD messages

begin work on network isolation code

add more docs
5 years ago
Michael dd8a93a400
Apply rule of zero to code base 5 years ago
Jeff Becker e178a70929
use shared_ptr for event loop 5 years ago
Jeff Becker d4cb6808ec
more 5 years ago
Michael 31441b46dc
Convert from rapidjson to use nlohmann::json 5 years ago
Michael 54e689b0ad
Use string_view for string_view 5 years ago
Rick V 5a3947ca5c
clang-format 5 years ago
Rick V 0f45e286ff
XXX: the inline string_view constructors *should* be harmless on pre-C++17 platforms...
fix windows build
5 years ago
Michael a0125ffe86
Move abyss/json to llarp/util/json 5 years ago
Jeff Becker 39fdebbf48
* make docker use ninja
* fix debian build
5 years ago
Jeff Becker e1fceb3636
fix it (again) 5 years ago
Michael f3b0af9d2f
Create CopyableBuffer type 5 years ago
Michael e5eda0fb8f
Move lokinet unspecific components to a util/ library 5 years ago
Michael 85dde7b6b0
Move remaining include/llarp headers to llarp/ 6 years ago
Michael a5c3ba0fdd
Move logger.hpp to llarp/ 6 years ago
Michael c064893947
Move buffer.hpp to llarp/ 6 years ago
Michael 30e9dca2e5
Convert llarp_logic to be a C++ class 6 years ago
Jeff Becker 25fac844eb
make format 6 years ago
Jeff Becker c1e494c2c4
have llarp_ev_* use llarp_buffer_t 6 years ago
Michael 0b2ebc83e0
De-C-ify several .h headers 6 years ago
despair 04e620ebf2 add iocp tcp connect
msys2 grabs its reactos sdk headers straight out of git
most cross-compilers use the versioned releases (v6 as of last week)

huh. for once setting the windows version macros doesn't break anything.
6 years ago
Jeff Becker f285a0ac3e
update tests 6 years ago
Jeff 4b92661f5d * fix up kqueue tcp connection tracking so it works on mac os
* match changes in epoll for kqueue changes
* additional checks in libabyss
6 years ago
Jeff Becker 2d279e83fd
initial tcp connect for epoll 6 years ago
despair 561c5228d3 fixed race condition in event loop....dns seems to work now :DDD 6 years ago
despair d425b5d308 implement tcp evloop on win32
(with its now-obsolete distinction between socketfd and fd)

sockets and file descriptors used to be distinct objects....back in the
16-bit Winsock 1.1 era, which needlessly complicated the 32-bit port
back then. these days one can use [Read|Write]File(2) to operate on
sockfds...which also have some of the semantics of [read|write]v(2)
i.e. the scatter-gather thing it's known for is done in async handler

-rick

variants are nice

added note to self

clang-format

link abyss properly

oops

shut up

*shrugs*

oops forgot to start winsock

moved our async io status flags to the base class

let derived classes override them as needed

this is probably a synchronous op _anyway_

fix typo

wtf
6 years ago
Jeff Becker dbd2c41909
use event loop for time 6 years ago
Jeff Becker b3e7fee982
try making compatable with older versions of rapidjson
add toy munin plugin
6 years ago
Jeff Becker 04d55b94c5
fix up jsonrpc stuff 6 years ago
Jeff Becker ab7a4cd805
make jsonrpc demo work 6 years ago
Jeff Becker e8bbc10838
zero copy logic for abyss::http::ConnImpl 6 years ago
Jeff Becker 957a5ed833
initial epoll event loop implementation for tcp 6 years ago
Jeff Becker f7a095c1f7
disable string_view for now 6 years ago
Jeff Becker c262f8b5e3
bundle relevent libsodium parts 6 years ago
Jeff Becker 612057003a
de changes 6 years ago
Jeff Becker ca1243f392
add initial libabyss bolierplate 6 years ago