Giter Club home page Giter Club logo

hsocket's People

Contributors

pdt012 avatar

Watchers

 avatar

Forkers

zinc0x1e

hsocket's Issues

Partially Reliable Transmission Over UDP Support

I'd like to add partially reliable transmission over udp (PR-UDP) support to hsocket.

May be we can name our implementation as HProUDP?

This feature aims to provide a more reliable transmission than those over raw UDP and a more flexible config and a better performance than those over TCP.

Note that the aim is a partially reliable transmission, though user may configure it into a state that is as heavy and reliable as TCP or as simple as UDP, but its not our final goal. Say if raw UDP is like 0 and TCP is like 1, our ultimate goal is to provide user a totally flexible choice in the range of [0, 1]

The implementation will be like to implements a reliable UDP like we discussed before, but adding more configurable fields like buffer size, ACK strategy and congestion control strategy. But before all these things, I'd like to do a refactor, providing something like HStreamClient / HStreamServer, HPacketClient / HPacketServer. Then, our PR-UDP can be one of implementation of HStreamClient / HStreamServer and part of current packet transmission over TCP can be one of implementation of HPacketClient / HPacketServer. Thus, we can provide a unified user interface.

But after all, it's just a simple draft of my idea and we don't have any single use case for now, the final decision is up to you.

There're some interesting blog articles you may be interested in:

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.