pdt012 / hsocket Goto Github PK
View Code? Open in Web Editor NEWpython;c++;c#的 socket封装。三种语言实现的纯文本/json传输协议; 支持并发的python服务端。
python;c++;c#的 socket封装。三种语言实现的纯文本/json传输协议; 支持并发的python服务端。
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:
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.