Closed kylepl closed 1 year ago
The ASIO backend was made for a project that was later scrapped so it hasn't been updated recently. To fix it, you shouldn't need any low level headers like sys/socket and so on - it should be entirely isolated to high level ASIO headers other than integer file descriptors. With time, this ASIO backedn will be reqritten to C++20 native backend instead
Thanks for the information.
It turned out that the fix of including #include <stdint.h>
, was actually causing (for reasons I do not understand) several compile failure around missing def'ns of sys/socket.h, but only if included before internal/networking/bsd.h
.
Do you want the one-line patch for #include <stdint.h>
? With that, I have ASIO running.
Where is #include
I've sent a PR (feel free to use that, or just notice where I am putting it): https://github.com/uNetworking/uSockets/pull/200.
What platform is this on?
I'm running on Linux, though I'm not sure if that is precise enough.
I synced to commit e5b1d3f83c0c2dcc7f8aaa1bbdd1bb5942e85081.
I think there is some bit where my system has to have access to boost (fine, expected), but even before that I am hitting compile errors with:
WITH_ASIO=1 make
Getting (note just
make
works):Adding
#include <stdint.h>
to internal.h solves that, though it wasn't clear to me comparing epoll_kqueue header includes why that was needed. After that fix, I still get issues:which should be solved by
#include <sys/socket.h>
, but that is already included inbsd.c
.I may be missing something, so I figured I'd ask before investigating further. Thanks!