diff options
author | Manikandan C <mchockalingam@de.adit-jv.com> | 2018-11-12 14:01:47 +0100 |
---|---|---|
committer | Manikandan C <mchockalingam@de.adit-jv.com> | 2018-11-16 11:03:28 +0100 |
commit | 8112bb0c3a1b16a9f7e47e725d95f9fbab1bf4c2 (patch) | |
tree | 2967d4bf0cf3b95a542fc40e29cd7e67a341fc03 /src/lib | |
parent | 2c507329d9d161910c793c445ae8c388a608cf35 (diff) | |
download | DLT-daemon-Gateway_updates.tar.gz |
dlt-client: logging: Extended the receiver buffer sizeGateway_updates
- dlt-control couldn't receive all the GET_LOG_INFO response message
when many applications and contexts are registered.
Therefore the receiver buffer size was extended to 65K.
Also the receive buffer size macros are reduced to one variable.
- Code cleanup and improvements
Signed-off-by: Saya Sugiura <ssugiura@jp.adit-jv.com>
Diffstat (limited to 'src/lib')
-rw-r--r-- | src/lib/dlt_client.c | 6 | ||||
-rw-r--r-- | src/lib/dlt_client_cfg.h | 3 |
2 files changed, 3 insertions, 6 deletions
diff --git a/src/lib/dlt_client.c b/src/lib/dlt_client.c index 9c38827..cdfb002 100644 --- a/src/lib/dlt_client.c +++ b/src/lib/dlt_client.c @@ -289,7 +289,7 @@ DltReturnValue dlt_client_connect(DltClient *client, int verbose) return DLT_RETURN_ERROR; } - if (dlt_receiver_init(&(client->receiver),client->sock,DLT_CLIENT_RCVBUFSIZE) != DLT_RETURN_OK) + if (dlt_receiver_init(&(client->receiver), client->sock, DLT_RECEIVE_BUFSIZE) != DLT_RETURN_OK) { fprintf(stderr, "ERROR initializing receiver\n"); return DLT_RETURN_ERROR; @@ -1011,7 +1011,7 @@ STATIC void dlt_client_free_calloc_failed_get_log_info(DltServiceGetLogInfoRespo return; } -int dlt_client_parse_get_log_info_resp_text(DltServiceGetLogInfoResponse *resp, +DltReturnValue dlt_client_parse_get_log_info_resp_text(DltServiceGetLogInfoResponse *resp, char *resp_text) { AppIDsType *app = NULL; @@ -1023,7 +1023,7 @@ int dlt_client_parse_get_log_info_resp_text(DltServiceGetLogInfoResponse *resp, if ((resp == NULL) || (resp_text == NULL)) { - return DLT_RETURN_ERROR; + return DLT_RETURN_WRONG_PARAMETER; } /* ------------------------------------------------------ diff --git a/src/lib/dlt_client_cfg.h b/src/lib/dlt_client_cfg.h index 45d1864..bfa4d96 100644 --- a/src/lib/dlt_client_cfg.h +++ b/src/lib/dlt_client_cfg.h @@ -82,9 +82,6 @@ /* Size of buffer */ #define DLT_CLIENT_TEXTBUFSIZE 512 -/* Size of receive buffer */ -#define DLT_CLIENT_RCVBUFSIZE 10024 - /* Initial baudrate */ #if !defined (__WIN32__) && !defined(_MSC_VER) #define DLT_CLIENT_INITIAL_BAUDRATE B115200 |