summaryrefslogtreecommitdiff
path: root/include/dlt/dlt_common.h
diff options
context:
space:
mode:
authorManikandan C <mchockalingam@de.adit-jv.com>2018-11-28 11:01:44 +0100
committerManikandan C <mchockalingam@de.adit-jv.com>2018-12-11 09:33:05 +0100
commitd082636cabdffff3f6c62b907918d9a8d8f0cf35 (patch)
tree962aac58e134be7285646fe3c1c15f893e032751 /include/dlt/dlt_common.h
parent8c55a51cfb09f81ee23db7c380ede6a814fb3014 (diff)
downloadDLT-daemon-d082636cabdffff3f6c62b907918d9a8d8f0cf35.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/dlt/dlt_common.h')
-rw-r--r--include/dlt/dlt_common.h1
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;