From b83e58e21ea7dda57ddfda47bd1539d15abe687f Mon Sep 17 00:00:00 2001 From: Uros Majstorovic Date: Sat, 26 Aug 2017 21:59:08 +0200 Subject: fragments and packet timestamp implemented --- 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 fb6b923..47c6267 100644 --- a/code/test/vc_server.c +++ b/code/test/vc_server.c @@ -26,8 +26,8 @@ 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) { printf("MSG S:%s size:%ld\n", p, s); - unsigned char payload[ECP_SIZE_PLD(1000)]; - unsigned char *buf = ecp_pld_get_buf(payload); + unsigned char payload[ECP_SIZE_PLD(1000, 0)]; + unsigned char *buf = ecp_pld_get_buf(payload, 0); char *msg = "VAISTINU JE CAR!"; ecp_pld_set_type(payload, MTYPE_MSG); -- cgit v1.2.3