summaryrefslogtreecommitdiff
path: root/src/daemon/dlt_daemon_unix_socket.h
diff options
context:
space:
mode:
authorChristoph Lipka <clipka@jp.adit-jv.com>2015-11-18 19:19:22 +0900
committerLutz Helwing <lutz_helwing@mentor.com>2015-11-24 09:48:41 +0100
commitda4ac57d87108d8b2690979c273c000a798a59f5 (patch)
tree45f79c0c90d3b4c9a6804d6794da5485a5f05ed3 /src/daemon/dlt_daemon_unix_socket.h
parent188772ea0b3479352ae93552014d45fd1bc8e804 (diff)
downloadDLT-daemon-da4ac57d87108d8b2690979c273c000a798a59f5.tar.gz
Unix socket control interface
Control applications running in the same Linux OS should be able to communicate with the DLT Daemon via a socket connection. To be able to do that, the DLT Client library need to be extended. DLT Clients connected via this UNIX socket are not handled as normal DLT Clients and no log messages will be forwarded to them. This avoids problems in situations when a control application is connected to the DLT Daemon before any other 'real' DLT Client (e.g. DLT Viewer) is connected. In this situations, all already stored log messages are flushed to the control application and therefore lost, because the control application most likely ignore all incoming messages besides the one in which it is interested in. Signed-off-by: Christoph Lipka <clipka@jp.adit-jv.com>
Diffstat (limited to 'src/daemon/dlt_daemon_unix_socket.h')
-rw-r--r--src/daemon/dlt_daemon_unix_socket.h67
1 files changed, 67 insertions, 0 deletions
diff --git a/src/daemon/dlt_daemon_unix_socket.h b/src/daemon/dlt_daemon_unix_socket.h
new file mode 100644
index 0000000..5db4145
--- /dev/null
+++ b/src/daemon/dlt_daemon_unix_socket.h
@@ -0,0 +1,67 @@
+/*
+ * @licence app begin@
+ * SPDX license identifier: MPL-2.0
+ *
+ * Copyright (C) 2015, Advanced Driver Information Technology
+ * Copyright of Advanced Driver Information Technology, Bosch and Denso.
+ *
+ * This file is part of GENIVI Project DLT - Diagnostic Log and Trace.
+ *
+ * This Source Code Form is subject to the terms of the
+ * Mozilla Public License (MPL), v. 2.0.
+ * If a copy of the MPL was not distributed with this file,
+ * You can obtain one at http://mozilla.org/MPL/2.0/.
+ *
+ * For further information see http://www.genivi.org/.
+ * @licence end@
+ */
+
+/*!
+ * \author Christoph Lipka <clipka@jp.adit-jv.com>
+ *
+ * \copyright Copyright © 2015 ADIT. \n
+ * License MPL-2.0: Mozilla Public License version 2.0 http://mozilla.org/MPL/2.0/.
+ *
+ * \file dlt_daemon_unix_socket.h
+ */
+
+
+/*******************************************************************************
+** **
+** SRC-MODULE: dlt_daemon_unix_socket.h **
+** **
+** TARGET : linux **
+** **
+** PROJECT : DLT **
+** **
+** AUTHOR : Christoph Lipka clipka@jp.adit-jv.com **
+** **
+** PURPOSE : **
+** **
+** REMARKS : **
+** **
+** PLATFORM DEPENDANT [yes/no]: yes **
+** **
+** TO BE CHANGED BY USER [yes/no]: no **
+** **
+*******************************************************************************/
+
+/*******************************************************************************
+** Author Identity **
+********************************************************************************
+** **
+** Initials Name Company **
+** -------- ------------------------- ---------------------------------- **
+** cl Christoph Lipka ADIT **
+*******************************************************************************/
+
+#ifndef DLT_DAEMON_UNIX_SOCKET_H
+#define DLT_DAEMON_UNIX_SOCKET_H
+
+int dlt_daemon_unix_socket_open(int *sock, char *socket_path);
+int dlt_daemon_socket_close(int sock);
+
+int dlt_daemon_unix_socket_send(int sock,void* data1,int size1,void* data2,
+ int size2,char serialheader);
+
+#endif /* DLT_DAEMON_UNIX_SOCKET_H */