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/vc_outb.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ecp/test/vc_outb.c') diff --git a/ecp/test/vc_outb.c b/ecp/test/vc_outb.c index cc772d5..4b14244 100644 --- a/ecp/test/vc_outb.c +++ b/ecp/test/vc_outb.c @@ -89,10 +89,10 @@ int main(int argc, char *argv[]) { rv = ecp_init(&ctx, &vconn_handler, &vlink_handler); printf("ecp_init RV:%d\n", rv); - ecp_conn_handler_init(&dir_handler, handle_dir_msg, ecp_dir_handle_open, NULL, NULL); + ecp_conn_handler_init(&dir_handler, ecp_dir_handle_open, NULL, handle_dir_msg, NULL); ecp_ctx_set_handler(&ctx, ECP_CTYPE_DIR, &dir_handler); - ecp_conn_handler_init(&handler, handle_msg, handle_open, NULL, NULL); + ecp_conn_handler_init(&handler, handle_open, NULL, handle_msg, NULL); ecp_ctx_set_handler(&ctx, CTYPE_TEST, &handler); rv = ecp_dhkey_gen(&key_perma); -- cgit v1.2.3