Giter Club home page Giter Club logo

Comments (11)

amiiigh avatar amiiigh commented on August 14, 2024

Hey there,

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

from nodejs-httpp.

amiiigh avatar amiiigh commented on August 14, 2024

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

from nodejs-httpp.

sequoiar avatar sequoiar commented on August 14, 2024

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.

from nodejs-httpp.

amiiigh avatar amiiigh commented on August 14, 2024

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

from nodejs-httpp.

sequoiar avatar sequoiar commented on August 14, 2024

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

from nodejs-httpp.

NooshinEghbal avatar NooshinEghbal commented on August 14, 2024

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

from nodejs-httpp.

sequoiar avatar sequoiar commented on August 14, 2024

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

from nodejs-httpp.

NooshinEghbal avatar NooshinEghbal commented on August 14, 2024

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?

from nodejs-httpp.

sequoiar avatar sequoiar commented on August 14, 2024

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

from nodejs-httpp.

NooshinEghbal avatar NooshinEghbal commented on August 14, 2024

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

from nodejs-httpp.

sequoiar avatar sequoiar commented on August 14, 2024

@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

from nodejs-httpp.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.