diff options
author | ManikandanChockalingam <manikandan.chockalingam@in.bosch.com> | 2018-05-18 11:17:31 +0530 |
---|---|---|
committer | Christoph Lipka <clipka@users.noreply.github.com> | 2018-05-18 07:47:31 +0200 |
commit | da6eefe5cac244421c5af413c54e420717e11c9e (patch) | |
tree | e7eb7745fbc5e0edd3e2bede4d008a05250f1a18 /src/daemon/dlt_daemon_connection.c | |
parent | f549f5527148b32a15489aae75c9e4557e19cbd4 (diff) | |
download | DLT-daemon-da6eefe5cac244421c5af413c54e420717e11c9e.tar.gz |
IPC: Unix socket added (#43)
* IPC: Unix socket added
The user can select either FIFO or UNIX socket as IPC between user library and daemon through CMakelist option.
Socket path configurable for both FIFO and Unix Socket now configurable in CMake
Signed-off-by: Christoph Lipka <clipka@de.adit-jv.com>
Signed-off-by: ManikandanC <Manikandan.Chockalingam@in.bosch.com>
Diffstat (limited to 'src/daemon/dlt_daemon_connection.c')
-rw-r--r-- | src/daemon/dlt_daemon_connection.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/daemon/dlt_daemon_connection.c b/src/daemon/dlt_daemon_connection.c index 58b8a72..8a3913a 100644 --- a/src/daemon/dlt_daemon_connection.c +++ b/src/daemon/dlt_daemon_connection.c @@ -216,6 +216,10 @@ STATIC DltReceiver *dlt_connection_get_receiver(DltDaemonLocal *daemon_local, dlt_receiver_init(ret, fd, DLT_DAEMON_RCVBUFSIZESERIAL); } break; +#ifdef DLT_USE_UNIX_SOCKET_IPC + case DLT_CONNECTION_APP_CONNECT: + /* FALL THROUGH */ +#endif case DLT_CONNECTION_APP_MSG: /* FALL THROUGH */ case DLT_CONNECTION_ONE_S_TIMER: @@ -275,6 +279,11 @@ void *dlt_connection_get_callback(DltConnection *con) case DLT_CONNECTION_CLIENT_MSG_SERIAL: ret = dlt_daemon_process_client_messages_serial; break; +#ifdef DLT_USE_UNIX_SOCKET_IPC + case DLT_CONNECTION_APP_CONNECT: + ret = dlt_daemon_process_app_connect; + break; +#endif case DLT_CONNECTION_APP_MSG: ret = dlt_daemon_process_user_messages; break; |