summaryrefslogtreecommitdiff
path: root/include/dlt/dlt_client.h
diff options
context:
space:
mode:
authorFrederic Berat <fberat@de.adit-jv.com>2016-03-21 15:40:53 +0900
committerGernot Wirschal <gernot.wirschal@bmw.de>2016-04-27 09:23:56 +0200
commite1bdf1e7f1d2ac87a594abf8622f536d3ff4b0b9 (patch)
treeae58da225312880bab547191febf82691c20fea8 /include/dlt/dlt_client.h
parentcc4517dcffc6e5fd66791fca486586ae9b948174 (diff)
downloadDLT-daemon-e1bdf1e7f1d2ac87a594abf8622f536d3ff4b0b9.tar.gz
MultiNode: Add support for port configuration
Signed-off-by:Frederic Berat <fberat@de.adit-jv.com> Change-Id: I9b387d5713f5ae7b6fcfadb22d804fdb97534e44
Diffstat (limited to 'include/dlt/dlt_client.h')
-rw-r--r--include/dlt/dlt_client.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/include/dlt/dlt_client.h b/include/dlt/dlt_client.h
index 1dcc3a6..676ffeb 100644
--- a/include/dlt/dlt_client.h
+++ b/include/dlt/dlt_client.h
@@ -91,6 +91,7 @@ typedef struct
DltReceiver receiver; /**< receiver pointer to dlt receiver structure */
int sock; /**< sock Connection handle/socket */
char *servIP; /**< servIP IP adress/Hostname of TCP/IP interface */
+ int port; /**< Port for TCP connections (optional) */
char *serialDevice; /**< serialDevice Devicename of serial device */
char *socketPath; /**< socketPath Unix socket path */
speed_t baudrate; /**< baudrate Baudrate of serial interface, as speed_t */
@@ -104,6 +105,15 @@ extern "C" {
void dlt_client_register_message_callback(int (*registerd_callback) (DltMessage *message, void *data));
/**
+ * Initialising dlt client structure with a specific port
+ * @param client pointer to dlt client structure
+ * @param port The port for the tcp connection
+ * @param verbose if set to true verbose information is printed out.
+ * @return negative value if there was an error
+ */
+int dlt_client_init_port(DltClient *client, int port, int verbose);
+
+/**
* Initialising dlt client structure
* @param client pointer to dlt client structure
* @param verbose if set to true verbose information is printed out.