mini-lust / tutorials Goto Github PK
View Code? Open in Web Editor NEWAn RPC framework developing tutorial
An RPC framework developing tutorial
比如 rust doc 这种,生成一个 rust book. 这样很 rust,而且阅读体验也会很好. 非常不错的 rpc 教程,感谢作者.
参考 mini-lust/tutorials,我熟悉了异步 I/O tokio_util::codec::Decoder 的使用,但是想在 DPI 项目中使用它,便产生了下述疑问,希望您能帮我解惑
Decoder 在 L7 Application Server 中如何使用
当收到 data 时,调用 decoder 进行解析:
这种处理模式在 L7 Application 的实现中是很 easy 的。
Decoder 在 DPI 中如何使用
当我们收到的 data 是 Eth frame 时就出现问题了 (例如 unix socket server 模拟 DPI 的应用场景)
例如 unix client 将 http request 分两个 Eth frame 发送出去:
Eth header + IP header + TCP header + "GET /index.html HTTP/1.1\r\n"
Eth header + IP header + TCP header + "Host: www.test.com\r\n\r\n"
Eth header + IP header + TCP header + "GET /index.html HTTP/1.1\r\n"
。Eth header + IP header + TCP header + "GET /index.html HTTP/1.1\r\n"
被异步 I/O 缓存。Eth header + IP header + TCP header + "Host: www.test.com\r\n\r\n"
。Eth header + IP header + TCP header + "GET /index.html HTTP/1.1\r\n"
和 Eth header + IP header + TCP header + "Host: www.test.com\r\n\r\n"
。参考 Rust 的 DPI 开源项目 sniffglue 和 pcap-analyzer
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.