Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
sequoiar opened this issue Jul 18, 2020 · 11 comments
Open

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

sequoiar opened this issue Jul 18, 2020 · 11 comments

Comments

@sequoiar
Copy link
Member

sequoiar commented Jul 18, 2020

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

@sequoiar sequoiar changed the title Adopt HTTP over UDT over UDP Adapt HTTP over UDT over UDP Jul 18, 2020
@sequoiar sequoiar changed the title Adapt HTTP over UDT over UDP Discussion on HTTP over UDP tech via UDT or QUIC or KCP Jul 18, 2020
@sequoiar sequoiar changed the title Discussion on HTTP over UDP tech via UDT or QUIC or KCP Discussion on HTTP over UDP techs with UDT or QUIC or KCP Nov 18, 2020
@amiiigh
Copy link

amiiigh commented Feb 16, 2021

Hey there,

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

@amiiigh
Copy link

amiiigh commented Feb 16, 2021

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

@sequoiar
Copy link
Member Author

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.

@amiiigh
Copy link

amiiigh commented Feb 17, 2021

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

@sequoiar
Copy link
Member Author

@NooshinEghbal
Copy link

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

@sequoiar
Copy link
Member Author

sequoiar commented Feb 9, 2022

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

@NooshinEghbal
Copy link

NooshinEghbal commented Feb 10, 2022

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?

@sequoiar
Copy link
Member Author

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

@NooshinEghbal
Copy link

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

@sequoiar
Copy link
Member Author

@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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants