Commit Graph

91 Commits (6dc2222e1115435a638b3def2970197fdc3cb214)

Author SHA1 Message Date
Michael 7c1b224f67
Minor build fixes 6 years ago
despair ba577345b3 oops bad merge 6 years ago
despair f17c01a924 clang-format 6 years ago
despair d26141d433 Merge branch 'dev' into reeeee-divergence
ok hope this works -rick

# Conflicts:
#	.gitignore
#	.vscode/settings.json
#	include/llarp/service/context.hpp
#	llarp/dns.cpp
#	llarp/dnsc.cpp
#	llarp/ev.cpp
#	llarp/ev.hpp
#	llarp/ev_win32.hpp
#	llarp/net.cpp
#	llarp/router.cpp
#	llarp/router.hpp
#	llarp/service/context.cpp
6 years ago
Jeff Becker baa94ec345
make windows build happy 6 years ago
Jeff Becker 622ed8d12e
fix crash on premature close of event loop (also make format) 6 years ago
Jeff Becker 472948a610
more dns tweaks 6 years ago
despair 551bf0d2bf fix TUN read pkt 6 years ago
Jeff Becker 7e4d74cbfc
add initial jni stuff for lokinet android. i fucking hate android so god damn much. 6 years ago
despair 65ff1ba991 reading from TUN using native async io:
writing: 
6 years ago
Michael e4c5f4f77a
Update from `typedef` to `using` in .hpp files 6 years ago
despair 436025e0ca fix utp flags leaking into the actual socket transmission
clang-format
6 years ago
despair 964e834fea finally get the right error on windows
fix

fix up errno on win32

test
6 years ago
despair be7ac352ca switch to a simulation of epoll
the native async event system on windows
is _not_ very good at getting external events
(i.e. we receive data, but we don't get any indication
that this ever happened)
6 years ago
despair c325246beb need to start winsock to use any networking
try fixing this
6 years ago
despair e18f786ab2 refactor event loop stuff
find some place in the C code to place the worker thread procedure
until such time that michael presents the new thread pool class

fix unix

get a new event port each time and delet in the event loop after use
6 years ago
Jeff Becker 658210b9d1
fix up exit tun, fix up codel to actually do its job 6 years ago
despair f6fb063684 this is driving me at least mildly insane
we _never_ get to llarp::udp_listener::read
6 years ago
despair d311b2e9a9 remove dead code
(rip golden shield users D:)

remove more dead code

debug udp stuff

remove debug kqueue
6 years ago
Jeff Becker a59343cfec
we NEED NT >= 6 for event loop 6 years ago
Jeff Becker 04a249a503
Merge remote-tracking branch 'rick/dev' 6 years ago
Jeff Becker 960aa479e9
fixes for ancient rpi toolchain 6 years ago
despair 2a5a0f1577 fix warnings on windows
up next: fix netbsd
6 years ago
Jeff Becker 7a78832841
Merge remote-tracking branch 'rick/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
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
cathugger 73e6141023
ip: endianess swaps aren't needed, a bit of renaming and tweaking
Also `make format`.
6 years ago
Jeff Becker c8f870392f
make format 6 years ago
Jeff Becker ac1d1169bc
Merge remote-tracking branch 'rick/dev' into dev 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
despair 6e862f1acf apple compiler reeeeee 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 186e2ea989 refactored event loop base classes
use the base class impl for llarp::tcp_conn::sendto

can't seem to escape quotes ;-;

yeah this need to stay out of the unix build

turn on gnu extensions

apple stuff

remove duplicate code

clean up

fix vtable

clang-format

parameter checks
6 years ago
despair 9afe63d738 polish new build script
pass cxxflags down to c++ driver
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 2ca152f43f make tun work on kqueue 6 years ago
Jeff d3531ca561 fix macos build and add anaylze target 6 years ago
Jeff ccead80c3d make jsonrpc server configurable on build, disabled by default.
default to client only and require explicitly run as relay to run as relay.
6 years ago
Jeff Becker e8bbc10838
zero copy logic for abyss::http::ConnImpl 6 years ago
Jeff Becker f873b18036
fix up event loop 6 years ago
Jeff Becker c483ec5231
bounds check for tun and tcp writing 6 years ago
Jeff Becker de17324012
don't make tcp event code epoll specific 6 years ago
Jeff Becker 957a5ed833
initial epoll event loop implementation for tcp 6 years ago
Jeff Becker 612057003a
de changes 6 years ago
Jeff Becker 32a028f6d8
Merge remote-tracking branch 'cathugger/master' 6 years ago
Jeff Becker 475ac63f4a
initial admin api infra 6 years ago
despair86 94c5f46d33 try fixing win32 event loop 6 years ago
despair86 6ba60093d2 switch to std::variant for win32 ev_io
- sockets are a distinct (non-negative) file descriptor
- plain old file descriptors are opaque handles

this makes the specialisations of llarp::ev_io on win32 type-safe as
- TAP-Windows v9 adapter is a plain old device file (same as on UNIX and Linux)
- UDP listeners are sockets, so the type must change (from signed to unsigned int) to accomodate Winsock2
6 years ago