automotive-dlt
dlt_daemon_socket.c File Reference
#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"
Include dependency graph for dlt_daemon_socket.c:

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]
 

Detailed Description

Author
Alexander Wenzel alexa.nosp@m.nder.nosp@m..aw.w.nosp@m.enze.nosp@m.l@bmw.nosp@m..de Markus Klein Marku.nosp@m.s.Kl.nosp@m.ein@e.nosp@m.sk.f.nosp@m.raunh.nosp@m.ofer.nosp@m..de Mikko Rapeli mikko.nosp@m..rap.nosp@m.eli@b.nosp@m.mw.d.nosp@m.e

Definition in file dlt_daemon_socket.c.

Function Documentation

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 
)
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

Parameters
sock
buffer
message_size
Returns
on sucess: DLT_DAEMON_ERROR_OK, on error: DLT_DAEMON_ERROR_SEND_FAILED

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().

Variable Documentation

char str[DLT_DAEMON_TEXTBUFSIZE]
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().