From 2262f8b3406ac903a37f96a63c6250de215d1866 Mon Sep 17 00:00:00 2001 From: Manikandan C Date: Wed, 28 Nov 2018 11:01:44 +0100 Subject: Made socket send reliable Made TCP socket send reliable by storing the unsent/partial message in the ring buffer. This will avoid the corrupted messages/Gaps in Viewer side Signed-off-by: ManikandanC --- include/dlt/dlt_common.h | 1 + 1 file changed, 1 insertion(+) (limited to 'include') diff --git a/include/dlt/dlt_common.h b/include/dlt/dlt_common.h index 4803663..fa68997 100644 --- a/include/dlt/dlt_common.h +++ b/include/dlt/dlt_common.h @@ -765,6 +765,7 @@ typedef struct char *buf; /**< pointer to position within receiver buffer */ char *backup_buf; /** pointer to the buffer with partial messages if any **/ int fd; /**< connection handle */ + int32_t bytes_sent; /**< total bytes sent in a single msg */ int32_t buffersize; /**< size of receiver buffer */ } DltReceiver; -- cgit v1.2.1