Commit Graph

58 Commits (67eadff1434de707b121ed535139d19c35095d37)

Author SHA1 Message Date
Jeff Becker b543d6243d
Merge branch 'master' into dev 6 years ago
Jeff Becker a8ec8a4215
Merge remote-tracking branch 'origin/master' 6 years ago
Michael 0b2ebc83e0
De-C-ify several .h headers 6 years ago
Jeff Becker 5357b4b69f
make clang happy, disable netns by default (for now) 6 years ago
Jeff Becker 7214f242e0
rip out old threadpool code 6 years ago
Jeff Becker 960aa479e9
fixes for ancient rpi toolchain 6 years ago
Jeff Becker 7090a012f3
Merge remote-tracking branch 'micheal/wextra' into dev 6 years ago
Michael Thorpe 33bfaf7ecd
Enable -Wextra
test criteria:
- test build on macOS
- test build in debian docker container
- test build in fedora docker container
6 years ago
Jeff Becker f1cca956f9
make android compile again 6 years ago
despair c5d1b32286 remove microsoft c++ crud
🤔🤔🤔🤔
6 years ago
despair86 1a46631454 remove unused code 6 years ago
Jeff Becker 8a4b2e97a5
add lint target for makefile using clang tidy
run make format
6 years ago
Ryan Tharp 14d9b19a0f clang-format 6 years ago
Ryan Tharp dba3b66b50 fix FreeBSD compil 6 years ago
Jeff Becker 48e30f5492
actually fix compile error for windows 6 years ago
Jeff Becker c43a075b74
force number of workers in threadpool 6 years ago
Jeff Becker 5228a81bae
more refactor
get rid of C api
6 years ago
Jeff Becker b122fc59f8
refactor (not done) 6 years ago
Jeff Becker d3eef5c8b7
more netns code 6 years ago
despair86 c24a73f756 ran the linter on new code 6 years ago
Ricardo Villegas 43760dee2e more sun patches, plus a note to port solaris tuntap after
doing the windows port of same
6 years ago
despair86 8c1b2c3b79 win32 fluff
more win32 on msc++ fluff

and a solaris patch that i may revert later if the cpp directives aren't processed correctly
-despair86
6 years ago
Jeff Becker 377cc78144
fix crash 6 years ago
Jeff Becker 1a1f93c171
* more tun stuff
* use std::unique_ptr where bare pointers aren't absolutely required
6 years ago
Jeff Becker d7c1c3322f
it works. 6 years ago
Jeff Becker c36c83d9dc
more hidden service code 6 years ago
Jeff Becker 143da869b5
fix windows build 6 years ago
Jeff Becker c71d0b2bb3
always use SIGCHLD in clone 6 years ago
Jeff Becker e4bcf44a25
make net isolated threadpool more generic 6 years ago
Jeff Becker 33c5cf5a89
override join for isolated threadpool 6 years ago
Jeff Becker 62f41d3747
initial threadpool isolation code and run make format 6 years ago
Jeff Becker 066c208622 add mutex/lock to singlethread mode threadpool
remove uneeded i2p.rock.signed.txt

update makefile clean target
6 years ago
despair86 bdc54835c2 initial windows server port. Requires Windows 2000 Server or later.
- updated CMake build script
- builds with Microsoft C++ 19.1x. such builds require Windows 8.1 or later
  unless you have the .NET Server 2003-toolset (v141_xp)
- windows port requires a C++17 compiler since cpp17::filesystem is POSIX-only
- HAVE_CXX17_FILESYSTEM manual toggle in CMake. You must manually specify where
  std::[experimental::]filesystem is defined in LDFLAGS or CMAKE_x_LINKER_FLAGS.
- IPv6 support can be added at any time, and the windows sdk still has that
  inline getaddrinfo(3) if it can't find a suitable IPv6 stack.
- inline code for mingw-w64: there's a few bits and pieces still missing simply because
  mingw-w64 derives its windows sdk from wine and reactos, and then writing all the newer
  stuff into it by hand straight from the MSDN manpages.
- misc. C++11 stuff (nullptr and friends)
- Internal file handling code takes UTF-8 or plain 8-bit text, NTFS is UTF-16, so
  std::filesystem::path::c_str() is wchar_t. That's no good unless you first
  call std::filesystem::path::string().
- implemented getifaddrs(3) and if_nametoindex(3) on top of GetAdapters[Info|Addresses](2).
- updated readme with new info

BONUS: may implement Solaris/illumos IOCP someday...

-despair86
6 years ago
Jeff Becker b9f07e8593 * tweak event loop parameters
* various code cleanup
6 years ago
Jeff Becker 48cfdab63c get rid of wizard and autogenerate configs if not present with sane defaults 6 years ago
despair86 bbe0634edc this should get things going on UNIX :D 6 years ago
Jeff Becker 39e100d0b2
refactor dht code to be split up a bit more 6 years ago
Jeff Becker dfa567e816
Merge remote-tracking branch 'sachaaaa/refactor' into hidden-service-dht 6 years ago
sachaaaaa c7940076bf Remove most of the extern "C"
remove extern "C"
6 years ago
Jeff Becker 21a2ffdeaf
* refactor log functions
* add more stuff for hidden service dht
6 years ago
Jeff Becker 3e293eed6c
lessen warning threshold for slow jobs 6 years ago
Jeff Becker 0278ba559c
add single threaded mode for shadow 6 years ago
Jeff Becker 9816fd65e9
* logging refactor to be concise
* don't inline bencode

* refactor initial start of dht code a bit
6 years ago
Ryan Tharp 9f2d7f717a Merge branch 'master' of https://github.com/majestrate/llarp 6 years ago
Ryan Tharp 3808ea1215 FreeBSD use specific FreeBSD pthread naming api 6 years ago
Jeff Becker a00a0622d1
more docs
more logging
6 years ago
Jeff Becker 956973cb84
use configurable number of net io threads 6 years ago
Jeff Becker bc9e32d690
clang format and lots of stupid bug fixes 6 years ago
Jeff Becker cc97da29d4
named threadpool 6 years ago
Jeff Becker 4939c7a5e3
fix threading and stopping 6 years ago