diff options
author | Determinant <[email protected]> | 2019-06-20 19:17:11 -0400 |
---|---|---|
committer | Determinant <[email protected]> | 2019-06-20 19:17:11 -0400 |
commit | 65f7c078663da387fd2cee8ab401c7ef66081138 (patch) | |
tree | 121e0249651e7caa3dcbd09df639879af5dd46c9 /test/test_msgnet_c.c | |
parent | 4f41e23016dc316334e7d6cc8765bdf334b96f3e (diff) |
add TLS benchmark
Diffstat (limited to 'test/test_msgnet_c.c')
-rw-r--r-- | test/test_msgnet_c.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test/test_msgnet_c.c b/test/test_msgnet_c.c index e6ebd14..f99c88b 100644 --- a/test/test_msgnet_c.c +++ b/test/test_msgnet_c.c @@ -117,7 +117,7 @@ void on_receive_ack(const msg_t *msg, const msgnetwork_conn_t *conn, void *userd printf("[%s] the peer knows\n", name); } -void conn_handler(const msgnetwork_conn_t *conn, bool connected, void *userdata) { +bool conn_handler(const msgnetwork_conn_t *conn, bool connected, void *userdata) { msgnetwork_t *net = msgnetwork_conn_get_net(conn); MyNet *n = (MyNet *)userdata; const char *name = n->name; @@ -142,6 +142,7 @@ void conn_handler(const msgnetwork_conn_t *conn, bool connected, void *userdata) msgnetwork_connect(net, addr, &err); check_err(&err); } + return true; } void error_handler(const SalticidaeCError *err, bool fatal, void *userdata) { |