From 30b62efc8f044a7fd00e21c56490aefa32686a52 Mon Sep 17 00:00:00 2001 From: Uros Majstorovic Date: Sat, 20 Jan 2018 19:15:13 +0100 Subject: added client timing test --- code/test/vc_server.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'code/test/vc_server.c') diff --git a/code/test/vc_server.c b/code/test/vc_server.c index 04b8104..55f15d1 100644 --- a/code/test/vc_server.c +++ b/code/test/vc_server.c @@ -24,13 +24,13 @@ ssize_t handle_open(ECPConnection *conn, ecp_seq_t sq, unsigned char t, unsigned } ssize_t handle_msg(ECPConnection *conn, ecp_seq_t sq, unsigned char t, unsigned char *p, ssize_t s, ECP2Buffer *b) { - printf("MSG S:%s size:%ld\n", p, s); + // printf("MSG S:%s size:%ld\n", p, s); char *msg = "VAISTINU JE CAR!"; unsigned char buf[1000]; strcpy((char *)buf, msg); - ssize_t _rv = ecp_send(conn, MTYPE_MSG, buf, 1000); + ssize_t _rv = ecp_send(conn, MTYPE_MSG, buf, strlen(msg)+1); return s; } -- cgit v1.2.3