Commit Graph

222 Commits (af6caf776a4a7a8580d96d5e72cb9e037708e3c4)

Author SHA1 Message Date
despair c5d1b32286 remove microsoft c++ crud
🤔🤔🤔🤔
6 years ago
cathugger 4971fae171 uint32_t byte ordering type safety 6 years ago
Ryan Tharp cc42e8e623 guard, rename endpoint to context, main_router_endpoint_iterator() implementation 6 years ago
Ryan Tharp 9ea564e832 update llarp_main_init_dnsd to make new DNSd init 6 years ago
Ryan Tharp 902f6f14b7 pass RC by ref, header cleanup, clang format 6 years ago
Ryan Tharp 9d4d595624 compile fixes 6 years ago
Ryan Tharp 6590d502cd get first tun interface wiring 6 years ago
Ryan Tharp ca7d3567a2 prefetch and expose it 6 years ago
Ryan Tharp 4df6202c9f Merge branch 'master' of https://github.com/loki-project/loki-network 6 years ago
Jeff Becker 4e7c6ee90a
fix crash 6 years ago
Ryan Tharp 79fb82a3c8 main_router_getRange to get access to tun 6 years ago
Ryan Tharp 2bdee7d528 expose mapAddress of first tunEndpoint 6 years ago
Ryan Tharp f283923cb7 Merge branch 'master' of https://github.com/loki-project/loki-network 6 years ago
Ryan Tharp 9f33edeed0 Merge branch 'master' of https://github.com/loki-project/loki-network 6 years ago
Jeff Becker 2761da0b5f
actually load config 6 years ago
Jeff Becker e047bfa266
update readme
add sighup
6 years ago
Jeff Becker c3c388b6aa
remove iwp and start on curvecp
does not compile
6 years ago
Jeff Becker 973f86c900
it compiles 6 years ago
Jeff Becker 5228a81bae
more refactor
get rid of C api
6 years ago
Ryan Tharp 8724ddd792 Merge branch 'master' of https://github.com/loki-project/loki-network 6 years ago
despair86 9ad93a0893 sunos patches, avoid shadowing data members in derived classes, header fixes
SunOS build works, with a few issues:

- no tuntap debugging on Solaris? (TUNSDEBUG ioctl missing)
- regular socket ioctls are not pulled in with #include <sys/ioctl.h>
  even though they're included at the bottom of same (filio.h,
  sockio.h)
- no named threads in any libre fork of solaris

-despair86 (rick)

sun patch
6 years ago
Ryan Tharp 3ada1e15be llarp_main_queryDHT_RC(), llarp_main_init_dnsd(), actually query DHT on dns lookup 6 years ago
Jeff Becker 62f41d3747
initial threadpool isolation code and run make format 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 928ec3790d deterministic logging 6 years ago
Jeff Becker d011fb550e have logic and netio run in same thread for now 6 years ago
Jeff Becker 07b99e8ac4 extern "C" block for shared library 6 years ago
Ryan Tharp bd229be656 handleBaseCmdLineArgs() refactor 6 years ago
despair86 bbe0634edc this should get things going on UNIX :D 6 years ago
Jeff Becker 17ad12cd2c * don't heap allocate llarp_rc
* store rc into network database cache on connect
6 years ago
Jeff Becker a9c92213df more backport 6 years ago
Jeff Becker f7daee5abf backport 6 years ago
Jeff Becker 066cf537e2 backport 6 years ago
Jeff Becker 62b94b17aa more backport 6 years ago
Jeff Becker fd4938b1e4 more android pendatic fixes 6 years ago
Jeff Becker 6945fe53a5 more also run make format 6 years ago
Jeff Becker f48acbc23e Merge remote-tracking branch 'ryan/libdns' into hidden-service-dht
also run make format
6 years ago
Jeff Becker 0242e293c9 more 6 years ago
Ryan Tharp e1a4c2f32c Merge branch 'hidden-service-dht' of https://github.com/majestrate/llarp 6 years ago
Jeff Becker 5bbaae4e2e
more 6 years ago
Jeff Becker fe01c38d8e
* fix dht feedback loop
* start on dht lookups for hidden services

* make debug logging confurable on runtime with env var LLARP_DEBUG=1

* make eventloop tick only when we get traffic

* make testnet parameters configurable on runtime
6 years ago
Jeff Becker dfa567e816
Merge remote-tracking branch 'sachaaaa/refactor' into hidden-service-dht 6 years ago
sachaaaaa 33586d385b clang format 6 years ago
sachaaaaa c7940076bf Remove most of the extern "C"
remove extern "C"
6 years ago
Ryan Tharp 00e56ecfd2 Merge branch 'hidden-service-dht' of https://github.com/majestrate/llarp 6 years ago
Jeff Becker 21a2ffdeaf
* refactor log functions
* add more stuff for hidden service dht
6 years ago
Ryan Tharp 876324fdbc llarp_main_abort => llarp_logic_stop_timer 6 years ago
Jeff Becker 7d9bffdf9c
make format 6 years ago
Ryan Tharp b524f19119 fix missing header 6 years ago
Ryan Tharp d132e3cd10 load config-file from config, llarp_main_getLocalRC(), llarp_main_checkOnline(), llarp_main_queryDHT() refactor 6 years ago
Ryan Tharp ede0cb4772 Merge branch 'master' of https://github.com/neuroscr/loki-network 6 years ago
Jeff Becker da22f306e0
* add path building management
* fix bug in iwp that caused crash
6 years ago
Ryan Tharp c31e5795fc setup() refactor, llarp_main_queryDHT() 6 years ago
Ryan Tharp 2e74bce713 getDatabase and associated functions 6 years ago
Ryan Tharp 51c97d44b3 ReloadConfig refactor, direct nodedb functions 6 years ago
Ryan Tharp f49bd89a42 Merge branch 'master' of https://github.com/neuroscr/llarp 6 years ago
Ryan Tharp 7cd13b3f89 changed info message 6 years ago
Jeff Becker 54366c040c
make format 6 years ago
Ryan Tharp 087f4c2f02 clean up llarp_nodedb_async_verify api, make setRC save to correct path 6 years ago
Jeff Becker 90611731a5
initial shadow test net 6 years ago
Jeff Becker e12bd9442f
expose multi process/single process option 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
Jeff Becker 5649d261ae
start fleshing out dht subsystem a bit 6 years ago
Jeff Becker fe19314484
more stuff 6 years ago
Ryan Tharp 9f2d7f717a Merge branch 'master' of https://github.com/majestrate/llarp 6 years ago
Ryan Tharp 78007425fd use FreeBSD API for setting thread names 6 years ago
Jeff Becker a00a0622d1
more docs
more logging
6 years ago
Jeff Becker 02d785d30c
add release targets to makefile for future
purge llarp_alloc

colored logging
6 years ago
Jeff Becker e58bd10b23
add python ffi example wrapper code 6 years ago
Jeff Becker 3f21cc5865
make c api for main 6 years ago
Jeff Becker 4a3a0fc556
make an application context to simplify the main function 6 years ago