diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/dlt/dlt_client.h | 10 |
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. |