automotive-dlt
dlt_daemon_unix_socket.c File Reference
#include <stdio.h>
#include <stdlib.h>
#include <sys/un.h>
#include <sys/socket.h>
#include <syslog.h>
#include <errno.h>
#include "dlt-daemon.h"
#include "dlt_common.h"
#include "dlt-daemon_cfg.h"
#include "dlt_daemon_socket.h"
#include "dlt_daemon_unix_socket.h"
Include dependency graph for dlt_daemon_unix_socket.c:

Go to the source code of this file.

Functions

int dlt_daemon_unix_socket_open (int *sock, char *sock_path)
 
int dlt_daemon_unix_socket_close (int sock)
 
int dlt_daemon_unix_socket_send (int sock, void *data1, int size1, void *data2, int size2, char serialheader)
 

Variables

char err_string [DLT_DAEMON_TEXTBUFSIZE]
 

Detailed Description

Author
Christoph Lipka clipk.nosp@m.a@jp.nosp@m..adit.nosp@m.-jv..nosp@m.com

Definition in file dlt_daemon_unix_socket.c.

Function Documentation

int dlt_daemon_unix_socket_close ( int  sock)

Definition at line 80 of file dlt_daemon_unix_socket.c.

References dlt_log(), and err_string.

int dlt_daemon_unix_socket_open ( int *  sock,
char *  sock_path 
)

Definition at line 43 of file dlt_daemon_unix_socket.c.

References dlt_log(), and NULL.

Referenced by dlt_daemon_local_connection_init().

int dlt_daemon_unix_socket_send ( int  sock,
void *  data1,
int  size1,
void *  data2,
int  size2,
char  serialheader 
)

Definition at line 93 of file dlt_daemon_unix_socket.c.

References dlt_daemon_socket_send().

Variable Documentation

char err_string[DLT_DAEMON_TEXTBUFSIZE]

Definition at line 41 of file dlt_daemon_unix_socket.c.

Referenced by dlt_daemon_unix_socket_close().