diff options
author | Manikandan C <mchockalingam@de.adit-jv.com> | 2018-11-28 11:01:44 +0100 |
---|---|---|
committer | Christoph Lipka <clipka@users.noreply.github.com> | 2018-12-21 10:16:46 +0100 |
commit | 2262f8b3406ac903a37f96a63c6250de215d1866 (patch) | |
tree | a5fcd778ae75d9ac1cd04202324a00ab50d3c7bd /include | |
parent | 037d33d0c1bc83ca79812340ea9120d13fd1c705 (diff) | |
download | DLT-daemon-2262f8b3406ac903a37f96a63c6250de215d1866.tar.gz |
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 <Manikandan.Chockalingam@in.bosch.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/dlt/dlt_common.h | 1 |
1 files changed, 1 insertions, 0 deletions
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; |