summaryrefslogtreecommitdiff
path: root/code/test/pr_server.c
diff options
context:
space:
mode:
authorUros Majstorovic <majstor@majstor.org>2017-07-17 21:36:47 +0200
committerUros Majstorovic <majstor@majstor.org>2017-07-17 21:36:47 +0200
commit37f628a88d800123dbad003b122322e8181c3baa (patch)
tree92e97f0fdf7d8a03e8ac379af951ecf3593340d8 /code/test/pr_server.c
parent06f74eed2686a9cab4191908c3fd30f0c15a380b (diff)
seq added to msg handler
Diffstat (limited to 'code/test/pr_server.c')
-rw-r--r--code/test/pr_server.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/code/test/pr_server.c b/code/test/pr_server.c
index 0f898ce..2fd81a6 100644
--- a/code/test/pr_server.c
+++ b/code/test/pr_server.c
@@ -18,12 +18,12 @@ ECPConnection conn;
#define CTYPE_TEST 0
#define MTYPE_MSG 8
-ssize_t handle_open(ECPConnection *conn, unsigned char t, unsigned char *p, ssize_t s) {
+ssize_t handle_open(ECPConnection *conn, ecp_seq_t sq, unsigned char t, unsigned char *p, ssize_t s) {
printf("OPEN RECEIVED\n");
- return ecp_conn_handle_open(conn, t, p, s);
+ return ecp_conn_handle_open(conn, sq, t, p, s);
}
-ssize_t handle_msg(ECPConnection *conn, unsigned char t, unsigned char *p, ssize_t s) {
+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)];