Commit Graph

6 Commits

Author SHA1 Message Date
Robin Müller cf8fe7ea72
more simplfications 2022-09-01 10:51:09 +02:00
Robin Müller 496dac89e4
important bugfix for TCP TMTC server 2022-08-31 22:47:58 +02:00
Robin Müller 1037102349
merge retval refactoring 2022-08-16 01:08:26 +02:00
Robin Müller ddcac2bbac
reapply clang format 2022-02-02 10:29:30 +01:00
Robin Müller a4d6421510
documentation and bugfixes 2021-09-28 15:30:01 +02:00
Robin Müller 09299802f0
TCP refactoring
This refactoring keeps the TCP connection opened until the client closes
it. It also increased the robustness of the TCP reception.

Because TCP is stream based and usually applied to newline separated
data, a special way to handle binary space packets is required.

The new SpacePacketParser class takes care of this by taking TC packet
IDs as as optional start markers to parse for space packets in a given
buffer.

The refactored TCP server uses a ring buffer, a reception buffer and the
new parser to extract space packets from a stream in a safer way.
2021-09-28 15:01:01 +02:00