From 7a0e44998f426752c58975ae686d8e88aa131195 Mon Sep 17 00:00:00 2001 From: Uros Majstorovic Date: Sat, 11 May 2024 15:58:48 +0200 Subject: added error handler per connection type; improved handlers API and error reporting --- ecp/test/basic.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ecp/test/basic.c') diff --git a/ecp/test/basic.c b/ecp/test/basic.c index 637a829..2e6bfd0 100644 --- a/ecp/test/basic.c +++ b/ecp/test/basic.c @@ -55,7 +55,7 @@ int main(int argc, char *argv[]) { rv = ecp_init(&ctx_s); printf("ecp_init RV:%d\n", rv); - ecp_conn_handler_init(&handler_s, handle_msg_s, NULL, NULL, NULL); + ecp_conn_handler_init(&handler_s, NULL, NULL, handle_msg_s, NULL); ecp_ctx_set_handler(&ctx_s, CTYPE_TEST, &handler_s); rv = ecp_dhkey_gen(&key_perma_s); @@ -77,7 +77,7 @@ int main(int argc, char *argv[]) { rv = ecp_init(&ctx_c); printf("ecp_init RV:%d\n", rv); - ecp_conn_handler_init(&handler_c, handle_msg_c, handle_open_c, NULL, NULL); + ecp_conn_handler_init(&handler_c, handle_open_c, NULL, handle_msg_c, NULL); ecp_ctx_set_handler(&ctx_c, CTYPE_TEST, &handler_c); rv = ecp_dhkey_gen(&key_perma_c); -- cgit v1.2.3