nodejs-httpp icon indicating copy to clipboard operation
nodejs-httpp copied to clipboard

Discussion on HTTP over UDP techs with UDT or QUIC or KCP

Open sequoiar opened this issue 5 years ago • 11 comments

HTTP over UDT over UDP was implemented. And, welcome discussion on HTTP over UDP tech with UDT, QUIC and KCP.

sequoiar avatar Jul 18 '20 15:07 sequoiar

Hey there,

Could you help me find the implementation for UDT in this repo?

amiiigh avatar Feb 16 '21 23:02 amiiigh

Or like which part of the code do I need to use only UDT in my nodejs code?

amiiigh avatar Feb 16 '21 23:02 amiiigh

UDT api is like Net module api, while UDTS api is like TLS api. check below link for detail https://github.com/InstantWebP2P/nodejs-httpp/wiki/An-introduction-to-run-http-over-udp-with-node.js The HTTPP to HTTP modules mapping is like below: net -> udt, http -> httpp, tls -> udts, https -> httpps.

sequoiar avatar Feb 16 '21 23:02 sequoiar

@sequoiar the first line var udt = require('udt'); imports udt. my question is where is the implementation of this library?

amiiigh avatar Feb 17 '21 01:02 amiiigh

@amiiigh check https://github.com/instantwebp2p/uvudt/tree/8d4f021d8042a82988472a9db43382fa28190d9d UDT is an extension to libuv as uvudt

sequoiar avatar Feb 17 '21 01:02 sequoiar

Does HTTPP use the packet/stream mode of UDT or message mode? Where can I find the parts of the code when HTTPP uses sending/receiving calls of UDT? Thanks

NooshinEghbal avatar Feb 08 '22 20:02 NooshinEghbal

@NooshinEghbal HTTPP(http) is run UDT stream mode. if you want message mode, you can implement nodejs/diagram over UDT message mode.

sequoiar avatar Feb 09 '22 03:02 sequoiar

I looked into the wiki page and the HTTPP server/client example. So, if I have a group of resources (e.g. font, image, css and JavaScript files) for a web page, how can I use HTTPP to measure the page load time? And also how can I change the underlying protocol from UDT to KCP for HTTPP?

NooshinEghbal avatar Feb 10 '22 10:02 NooshinEghbal

@NooshinEghbal there is no httpp enabled web-browser so far. not sure httpp.client can help on it.

sequoiar avatar Feb 10 '22 10:02 sequoiar

What if I just want to send a group of files from httpp server to the client?

NooshinEghbal avatar Feb 10 '22 10:02 NooshinEghbal

@NooshinEghbal you can try httpp.get a file from httpp.server . you need assemble some basic HTTP message.

refer to https://github.com/InstantWebP2P/nodejs-httpp/blob/v12.x-httpp/test/httpp/httpp-cln.js

sequoiar avatar Feb 10 '22 14:02 sequoiar