|
automotive-dlt
|
#include <netdb.h>#include <ctype.h>#include <stdio.h>#include <sys/socket.h>#include <arpa/inet.h>#include <stdlib.h>#include <string.h>#include <unistd.h>#include <fcntl.h>#include <signal.h>#include <syslog.h>#include <errno.h>#include <pthread.h>#include <sys/ioctl.h>#include <net/if.h>#include <sys/stat.h>#include <sys/time.h>#include "dlt_types.h"#include "dlt-daemon.h"#include "dlt-daemon_cfg.h"#include "dlt_daemon_common_cfg.h"#include "dlt_daemon_socket.h"
Go to the source code of this file.
Functions | |
| int | dlt_daemon_socket_open (int *sock, unsigned int servPort) |
| int | dlt_daemon_socket_close (int sock) |
| int | dlt_daemon_socket_send (int sock, void *data1, int size1, void *data2, int size2, char serialheader) |
| int | dlt_daemon_socket_sendreliable (int sock, void *buffer, int message_size) |
| dlt_daemon_socket_sendreliable - sends data to socket with additional checks and resending functionality - trying to be reliable More... | |
| int | dlt_daemon_socket_get_send_qeue_max_size (int sock) |
Variables | |
| static char | str [DLT_DAEMON_TEXTBUFSIZE] |
Definition in file dlt_daemon_socket.c.
| int dlt_daemon_socket_close | ( | int | sock | ) |
Definition at line 140 of file dlt_daemon_socket.c.
| int dlt_daemon_socket_get_send_qeue_max_size | ( | int | sock | ) |
Definition at line 206 of file dlt_daemon_socket.c.
Referenced by dlt_daemon_socket_open().
| int dlt_daemon_socket_open | ( | int * | sock, |
| unsigned int | servPort | ||
| ) |
Definition at line 66 of file dlt_daemon_socket.c.
References dlt_daemon_socket_get_send_qeue_max_size(), DLT_DAEMON_TEXTBUFSIZE, dlt_log(), dlt_vlog(), NULL, and str.
Referenced by dlt_daemon_local_connection_init().
| int dlt_daemon_socket_send | ( | int | sock, |
| void * | data1, | ||
| int | size1, | ||
| void * | data2, | ||
| int | size2, | ||
| char | serialheader | ||
| ) |
Definition at line 147 of file dlt_daemon_socket.c.
References dlt_daemon_socket_sendreliable(), DLT_RETURN_OK, dltSerialHeader, and NULL.
Referenced by dlt_daemon_client_send(), and dlt_daemon_unix_socket_send().
| int dlt_daemon_socket_sendreliable | ( | int | sock, |
| void * | buffer, | ||
| int | message_size | ||
| ) |
dlt_daemon_socket_sendreliable - sends data to socket with additional checks and resending functionality - trying to be reliable
| sock | |
| buffer | |
| message_size |
Definition at line 176 of file dlt_daemon_socket.c.
References DLT_DAEMON_ERROR_OK, DLT_DAEMON_ERROR_SEND_FAILED, and dlt_vlog().
Referenced by dlt_connection_send(), and dlt_daemon_socket_send().
|
static |
Global text output buffer, mainly used for creation of error/warning strings
Definition at line 64 of file dlt_daemon_socket.c.
Referenced by dlt_daemon_socket_open().