node.js - Node's coexistance with Boost.Asio -


there's node doing repetitive works(like setinterval) , network event handling.

i've built network library in c++ using boost.asio , want use node explained above(with node-ffi , works well).

here's problem. node has own event dispatcher , boost.asio too. so, after i've invoked above c++ library node, because blocked, no other node code not reached , didn't work anymore.

can make them coexist peacefully...?

asio's io_service::poll_one() works find in way there's better solution.

node-ffi's async library call perfect situation. says...

node-ffi supports ability execute library calls in different thread using libuv library. use async support, invoke .async() function on returned ffi'd function.


Comments

Popular posts from this blog

c++ - Difference between pre and post decrement in recursive function argument -

php - Nothing but 'run(); ' when browsing to my local project, how do I fix this? -

php - How can I echo out this array? -