From fba1c7d1a6418221a94965d0431bf7df0a9a74a0 Mon Sep 17 00:00:00 2001 From: Linus Nordberg Date: Wed, 15 May 2013 14:20:52 +0200 Subject: WIP commit moving towards working server support. --- lib/examples/client-dispatch.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'lib/examples/client-dispatch.c') diff --git a/lib/examples/client-dispatch.c b/lib/examples/client-dispatch.c index e007654..8a80ec6 100644 --- a/lib/examples/client-dispatch.c +++ b/lib/examples/client-dispatch.c @@ -67,14 +67,13 @@ dispatching_client (struct rs_context *ctx) if (rs_conn_create(ctx, &conn, CONFIG)) goto out; - rs_conn_set_callbacks (conn, &cb); - if (rs_packet_create_authn_request (conn, &req_msg, - USER_NAME, USER_PW, SECRET)) + rs_conn_set_callbacks (conn, &cb, &state); + if (rs_packet_create_authn_request (conn, &req_msg, USER_NAME, USER_PW)) goto out; /* Doesn't really send the message but rather queues it for sending. msg_received_cb() will be invoked with user_data = &state when the message has been sent. */ - if (rs_packet_send (req_msg, &state)) + if (rs_packet_send (req_msg)) goto out; while (1) -- cgit v1.1