Commit Graph

39 Commits

Author SHA1 Message Date
Robin Müller c35a0a8541
TCP/IP server fixes and improvements 2023-03-15 12:40:44 +01:00
Ulrich Mohr 0a9c563bbc format 2023-02-09 15:58:48 +01:00
Robin Müller 9b05e8f274 re-order fields in TcpConfig 2023-01-30 14:24:48 +01:00
Robin Müller 99d8c845f2 allow using SO_REUSEADDR and SO_REUSEPORT on TCP server 2023-01-30 14:07:41 +01:00
Robin Müller c913fe40bf tweaks 2022-11-09 17:54:08 +01:00
Steffen Gaisser dc1583c932 Merge branch 'development' into windows-tweaks-upstream 2022-10-24 17:10:44 +02:00
Robin Müller 876815b1c9 another small windows tweak 2022-09-28 09:59:22 +02:00
Robin Müller 237e29cc59
all necessary modifications 2022-09-14 20:21:03 +02:00
Robin Müller 01651f0521 more simplfications 2022-09-01 10:52:48 +02:00
Robin Müller 28ecd0e5c6
bugfix for SP parser 2022-09-01 08:51:12 +02:00
Robin Müller 8c8d1cfa84
apply auto-formatter 2022-08-22 15:02:16 +02:00
Ulrich Mohr 217276d50c renamed returnvalue header 2022-08-16 12:48:22 +02:00
Robin Müller 62fe75ee40
perform renaming 2022-08-15 20:28:16 +02:00
Robin Müller 5355e63711
use result instead of retval 2022-07-27 21:43:32 +02:00
Robin Müller 88ebb67c8d
fix deprecation warnings 2022-07-26 10:27:44 +02:00
Steffen Gaisser 5e62258aa6 Merge branch 'development' into mueller/tcp-server-cache-client-addr 2022-05-23 14:38:05 +02:00
Robin Müller 13cda86d23
remove commented code 2022-05-18 13:13:24 +02:00
Robin Müller e1dd27b9dd cache the TCP client address now 2022-05-17 13:16:36 +02:00
Robin Müller 7fee852dbd
re-apply updated auto-formatter 2022-05-16 14:55:15 +02:00
Robin Müller 970f039e85
Merge remote-tracking branch 'origin/development' into mueller/extend-version-class 2022-05-13 13:21:01 +02:00
Robin Müller be6a492022 Merge branch 'development' into mueller/extend-version-class 2022-05-09 22:34:09 +02:00
Robin Müller 80a5ed3c5b
added back fsfw namespace 2022-05-09 11:06:45 +02:00
Robin Müller 16e55a98ce
important bugfix for TCP server 2022-05-09 10:57:23 +02:00
Robin Müller 28015c4735 it compiles and runs 2022-05-01 17:48:49 +02:00
Robin Müller ddcac2bbac
reapply clang format 2022-02-02 10:29:30 +01:00
Jakob Meier 9bcd701a50 tcp server also parses TCs when client closes connection 2021-10-09 13:31:51 +02:00
Jakob Meier 6ad7f51297 added bind call error string 2021-10-09 13:31:40 +02:00
Robin Müller 0a6a32a130
printout separation 2021-09-29 11:45:20 +02:00
Robin Müller b1a9c90087 this should work for both OSes 2021-09-28 17:39:07 +02:00
Robin Müller a619087fef
Merge remote-tracking branch 'upstream/mueller/tcp-windows-fixes' into mueller/tcp-keep-open-pr 2021-09-28 17:35:07 +02:00
Robin Müller 32b5060c62 all windows fixes 2021-09-28 17:28:54 +02:00
Robin Müller 1622e23f1c delay configurable 2021-09-28 15:33:31 +02:00
Robin Müller bbea5e33bc removed obsolete empty ctor 2021-09-28 15:12:55 +02:00
Robin Müller e536918804
wiretapping in runtime config now 2021-09-28 15:09:56 +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
Robin Müller eecb69d230 getter function for UDP port 2021-08-09 18:22:51 +02:00
Robin Müller 14a30f30db More improvements for TCP/UDP port definition 2021-08-09 18:13:02 +02:00
Robin Müller ccaa0aa24f Cleaning up TCP and UDP code
Same port number used as before, but some inconsistencies fixed
2021-08-09 16:59:41 +02:00
Robin Müller d47906e833
trying to fuse header / inc 2021-07-19 16:25:51 +02:00