From e1bdf1e7f1d2ac87a594abf8622f536d3ff4b0b9 Mon Sep 17 00:00:00 2001 From: Frederic Berat Date: Mon, 21 Mar 2016 15:40:53 +0900 Subject: MultiNode: Add support for port configuration Signed-off-by:Frederic Berat Change-Id: I9b387d5713f5ae7b6fcfadb22d804fdb97534e44 --- include/dlt/dlt_client.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'include') 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 */ @@ -103,6 +104,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 -- cgit v1.2.1