automotive-dlt
dlt_daemon_socket.h
Go to the documentation of this file.
1 /*
2  * @licence app begin@
3  * SPDX license identifier: MPL-2.0
4  *
5  * Copyright (C) 2011-2015, BMW AG
6  *
7  * This file is part of GENIVI Project DLT - Diagnostic Log and Trace.
8  *
9  * This Source Code Form is subject to the terms of the
10  * Mozilla Public License (MPL), v. 2.0.
11  * If a copy of the MPL was not distributed with this file,
12  * You can obtain one at http://mozilla.org/MPL/2.0/.
13  *
14  * For further information see http://www.genivi.org/.
15  * @licence end@
16  */
17 
28 /*******************************************************************************
29 ** **
30 ** SRC-MODULE: dlt_daemon_socket.h **
31 ** **
32 ** TARGET : linux **
33 ** **
34 ** PROJECT : DLT **
35 ** **
36 ** AUTHOR : Alexander Wenzel Alexander.AW.Wenzel@bmw.de **
37 ** **
38 ** PURPOSE : **
39 ** **
40 ** REMARKS : **
41 ** **
42 ** PLATFORM DEPENDANT [yes/no]: yes **
43 ** **
44 ** TO BE CHANGED BY USER [yes/no]: no **
45 ** **
46 *******************************************************************************/
47 
48 /*******************************************************************************
49 ** Author Identity **
50 ********************************************************************************
51 ** **
52 ** Initials Name Company **
53 ** -------- ------------------------- ---------------------------------- **
54 ** aw Alexander Wenzel BMW **
55 *******************************************************************************/
56 
57 #ifndef DLT_DAEMON_SOCKET_H
58 #define DLT_DAEMON_SOCKET_H
59 
60 #include <limits.h>
61 #include <semaphore.h>
62 #include "dlt_common.h"
63 #include "dlt_user.h"
64 
65 int dlt_daemon_socket_open(int *sock, unsigned int servPort);
66 int dlt_daemon_socket_close(int sock);
67 
69 
70 int dlt_daemon_socket_send(int sock,void* data1,int size1,void* data2,int size2,char serialheader);
71 
79 int dlt_daemon_socket_sendreliable(int sock, void* buffer,int message_size);
80 
81 #endif /* DLT_DAEMON_SOCKET_H */
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 functional...
int dlt_daemon_socket_get_send_qeue_max_size(int sock)
int dlt_daemon_socket_open(int *sock, unsigned int servPort)
unsigned char buffer[BUFFER_SIZE]
Buffer for dlt file transfer. The size is defined by BUFFER_SIZE.
int dlt_daemon_socket_close(int sock)