Commit Graph

9 Commits

Author SHA1 Message Date
05c4f4fadc
Bugfix for Packet ID getters
- Also added related unittests
2021-11-18 19:56:24 +01:00
7122c37511
updated function names 2021-10-18 18:26:03 +02:00
a077a1b587
improved constexpr macros 2021-10-18 15:07:00 +02:00
4924da1667
Merge remote-tracking branch 'upstream/development' into mueller/tcp-keep-open-pr 2021-10-11 18:52:52 +02:00
9efe9e78d8 Increased TM stack robustness
1. More nullptr check
2. returnvalue for inititalize function which can fail
2021-10-11 16:36:28 +02:00
cffd77ed32
put functions in namespace 2021-09-28 17:42:29 +02:00
bf02f14772 C++11 adaptions 2021-09-28 16:33:20 +02:00
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
d47906e833
trying to fuse header / inc 2021-07-19 16:25:51 +02:00