You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm coming from implementing native addons in NodeJS with C++ using the Node API.
I'm trying to integrate the rust library quiche into NodeJS.
The usage of quiche requires the ability to bind to addresses and open UDP sockets.
In quiche's examples, they show how to do this with mio inside Rust, or with libev in their C examples.
However we know, NodeJS has libuv and this is what is used to handle sockets. I believe I should be using libuv to ensure that my native addon is opening sockets in the same way that the rest of the NodeJS runtime is behaving.
If I'm trying to open and bind to a socket using Neon, how do I access the libuv API that the Node runtime would be bundled with?
I saw that Rust has a libuv crate, but using a such thing would result in simply statically compiling the libuv in the resulting node addon right?
What is the equivalent to:
#include <uv.h>
For Neon?
The text was updated successfully, but these errors were encountered:
I wonder how node-gyp link those functions of libuv. After all, nodejs now only bundled with a binary executable "node", and accompanying header files, but without any dynamic library. If we know the underlying principles, we can figure out the linking options in Rust.
I'm coming from implementing native addons in NodeJS with C++ using the Node API.
I'm trying to integrate the rust library
quiche
into NodeJS.The usage of
quiche
requires the ability to bind to addresses and open UDP sockets.In quiche's examples, they show how to do this with
mio
inside Rust, or withlibev
in their C examples.However we know, NodeJS has libuv and this is what is used to handle sockets. I believe I should be using libuv to ensure that my native addon is opening sockets in the same way that the rest of the NodeJS runtime is behaving.
If I'm trying to open and bind to a socket using Neon, how do I access the libuv API that the Node runtime would be bundled with?
I saw that Rust has a libuv crate, but using a such thing would result in simply statically compiling the libuv in the resulting node addon right?
What is the equivalent to:
For Neon?
The text was updated successfully, but these errors were encountered: