-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Serialization protocol documentation #3
Comments
serialization interface just tow functions:
built-in there is an option for custom serialization: you can see: serialize_nlohmann_json.hpp |
In theory, yes. However, in practice, no. While troubleshooting with a logic analyzer when implementing a
Ok this points me in the right direction, thank you.
Yes I did see other serialization options, and this is very helpful to be able to do others. However, I do like the size optimization, and presumably speed optimization, provided by the built-in |
The While understanding serialization will be helpful, but it will be very difficut to read. Ensuring a complete packet by code is the best approach. Moreover, built-in |
When watching a logic analyzer over long periods of time, it is helpful to have a clear idea of what the data you're looking at is. Indeed, with a Saleae Logic device, we could create an analyzer plugin that decodes it on the fly and shows the data above each packet. I suppose this could be done by just using rpc-core in the plugin code, though I'm not sure how feasible that is. |
when received one data packet, the only thing we known is so, if use build-in serialization-protocol, it's impossible to make a plugin. because the serialization erase the type info. |
I think I understand. You have to have pre-existing knowledge about what the packet means in order to decode it correctly. Both sides of the RPC know this, so it's not a problem, but a generic analyzer plugin would not. It could only guess based on patterns, but patterns alone won't tell you definitively. That said, some Saleae plugins let you have configuration you can put in. So... a simple implementation would let you put in the packet decoding for at least one type of packet. Ideally more than one packet decoding could be put in. |
When writing our
connection
layer, it's difficult to understand the built-inrpc_core
serialization protocol. Is there any documentation you can provide on that?The text was updated successfully, but these errors were encountered: