summaryrefslogtreecommitdiff
path: root/code/test/vc_server.c
diff options
context:
space:
mode:
authorUros Majstorovic <majstor@majstor.org>2018-01-20 19:15:13 +0100
committerUros Majstorovic <majstor@majstor.org>2018-01-20 19:15:13 +0100
commit30b62efc8f044a7fd00e21c56490aefa32686a52 (patch)
treed6574ec84c9213c5739dae91953f0bac81593c9e /code/test/vc_server.c
parent3e50c4990f4703e2c04d0f959d33e36504d43716 (diff)
added client timing test
Diffstat (limited to 'code/test/vc_server.c')
-rw-r--r--code/test/vc_server.c4
1 files changed, 2 insertions, 2 deletions
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;
}