diff options
author | Uros Majstorovic <majstor@majstor.org> | 2024-05-11 15:58:48 +0200 |
---|---|---|
committer | Uros Majstorovic <majstor@majstor.org> | 2024-05-11 15:58:48 +0200 |
commit | 7a0e44998f426752c58975ae686d8e88aa131195 (patch) | |
tree | b410237e4d9986a06108e9c0beff015a97effc55 /ecp/test/basic.c | |
parent | b3c62e6acc5761171822f522dc9d784558f9afbe (diff) |
added error handler per connection type; improved handlers API and error reporting
Diffstat (limited to 'ecp/test/basic.c')
-rw-r--r-- | ecp/test/basic.c | 4 |
1 files changed, 2 insertions, 2 deletions
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); |