Closed InstantWebP2P closed 4 years ago
This is much needed, and would drive adoption.
Started a UDT module myself then rediscovered this so I thought I would get in touch. Would like to help on this but not sure where to start....
@No9
three choices to make UDT as node.js module:
for item 1, I did write one, but not fully tested. you can start from https://github.com/InstantWebP2P/libuvpp/tree/v0.8-uvudt/uvudt
for item 2, I prefer, but I have no bandwidth on it so far.
for item 3, someone did it, like https://github.com/bigeasy/udt. but, UDT needs the exact timer and dedicated thread/worker to maintain it's state machine. I did doubt on this approach against Node.js single thread model.
@sequoiar
@No9
that's ok, you can put node.js API on UDT library directly.
But, if you are going implement TCP-compatible API over UDT and integrate these API to Node.js default loop, the work should be still complex compare to make UDT as libuv addon. :)
@sequoiar
:) Very good point!
I have made some progress on this and have a UDT server that the sample app https://github.com/InstantWebP2P/udt4/blob/master/udt4/app/appclient.cpp talks too.
Do you have a https://gitlab.com/ account btw? You can use you github login.
@No9 this one https://gitlab.com/s/iwebpp
Added you there :)
Very interested in progress here. Any word?
@bog There is a lot of work in making this a node_module. I am currently building a wrapper around UDT and then going to see what the next steps would be.
It still has the multi-threading issue raised by @sequoiar and a lot of other things wrong but this sample now goes end to end https://gitlab.com/no9/udt4
@No9 great work.
make node-httpp as addon or module is prefer, than fork of node.js.