murphymarkw / c-nydus Goto Github PK
View Code? Open in Web Editor NEWA proxy server that translates between TCP and UDT.
License: MIT License
A proxy server that translates between TCP and UDT.
License: MIT License
Right now the system is hardcoded to start two servers - a TCP server and a UDT server. Each of these each starts a client type - a TCP client and UDT client. Currently, this is done because there is no argument parsing being done to select the types at runtime.
Ideally, each instance of nydus should only start one server type and one client type. Each of these should be specified at runtime. The server should be given a host and port to listen on, and the client should be given a host and port to which it will forward traffic.
We need it. Preferably argp.
These should be extremely minimal. To start, just have Python call the server methods, which will just block.
Although TCP / UDT pairing is the current focus, it would be ideal to abstract away the underlying protocol and simply expose a struct that provides the bare minimum necessary to connect any two socket-based protocols in a producer / consumer configuration.
Seems to occur sporadically when immediately closing the UDT socket after accepting the connection. Could the UDP layer be dropping it?
To reproduce w/ 5ebffae:
nc -l 9090
nydus
up -v localhost 9000
Run a few times, setting up the nc and up after each run. Will usually work, but occasionally up will hang.
In order to minimize the impedance mismatch of utilizing two different protocols, it would be good to use both epoll and ring buffers to produce async I/O in the translation layer.
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.