aboutsummaryrefslogtreecommitdiff
path: root/test/test_msgnet_c.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/test_msgnet_c.c')
-rw-r--r--test/test_msgnet_c.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/test_msgnet_c.c b/test/test_msgnet_c.c
index b2fb35a..c2fb492 100644
--- a/test/test_msgnet_c.c
+++ b/test/test_msgnet_c.c
@@ -139,6 +139,13 @@ void conn_handler(const msgnetwork_conn_t *conn, bool connected, void *userdata)
}
}
+void error_handler(const SalticidaeCError *err, bool fatal, void *userdata) {
+ MyNet *n = (MyNet *)userdata;
+ printf("[%s] Captured %s error during an async call: %s\n",
+ n->name, fatal ? "fatal" : "recoverable",
+ salticidae_strerror(err->code));
+}
+
MyNet gen_mynet(const eventcontext_t *ec,
const char *name) {
MyNet res;