diff options
author | baduras <baduras@gmail.com> | 2018-01-12 12:21:07 +0100 |
---|---|---|
committer | Christoph Lipka <clipka@users.noreply.github.com> | 2018-01-12 12:21:07 +0100 |
commit | f355ad238fb769c295e5820eb9af6a56a7afa593 (patch) | |
tree | 126d28f1f431c0e90d9eeb8f74dbbab42ebe35de /src/daemon/dlt_daemon_socket.h | |
parent | 166e6e17523051f03f79616d511a9f59d613ab97 (diff) | |
download | DLT-daemon-f355ad238fb769c295e5820eb9af6a56a7afa593.tar.gz |
Prevention for occasional corrupted messages (#26)
Prevention for occasional corrupted messages caused mostly due to system high load.
Diffstat (limited to 'src/daemon/dlt_daemon_socket.h')
-rw-r--r-- | src/daemon/dlt_daemon_socket.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/daemon/dlt_daemon_socket.h b/src/daemon/dlt_daemon_socket.h index cc8dfb5..a7f9ca6 100644 --- a/src/daemon/dlt_daemon_socket.h +++ b/src/daemon/dlt_daemon_socket.h @@ -69,4 +69,13 @@ int dlt_daemon_socket_get_send_qeue_max_size(int sock); int dlt_daemon_socket_send(int sock,void* data1,int size1,void* data2,int size2,char serialheader); +/** + * @brief dlt_daemon_socket_sendreliable - sends data to socket with additional checks and resending functionality - trying to be reliable + * @param sock + * @param buffer + * @param message_size + * @return on sucess: DLT_DAEMON_ERROR_OK, on error: DLT_DAEMON_ERROR_SEND_FAILED + */ +int dlt_daemon_socket_sendreliable(int sock, void* buffer,int message_size); + #endif /* DLT_DAEMON_SOCKET_H */ |