Skip to content

Revisit the binary protocol between RTI and federates #410

Open
@erlingrj

Description

The current binary protocol between RTI and federates is somewhat brittle. Different packages are identified by just a magic byte. Another bug #409 lead to the RTI decoding arbitrary messages from the incoming socket. It would not have been a problem if the binary protocol was a little more robust. E.g we could do:

| magic start bytes | msg_type | length | header checksum | data | magic stop bytes |

This is just a quick idea, we can argue what would be the best protocol. But I do not think we should worry a lot about adding a couple of bytes to each package if it increases the robustness.

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions