summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLinus Nordberg <linus@nordu.net>2010-09-29 16:05:40 +0200
committerLinus Nordberg <linus@nordu.net>2010-09-29 16:05:40 +0200
commitde906e3721e19d9d8b2c61f834d8057bcce47af1 (patch)
tree40eb14514c4395d9aec6356ce728f536c1ceede0
parent3168e786f928c9b1639f6d8e4bc3fa9fd1d37c8d (diff)
* lib/examples/client.c: Use UDP.
-rw-r--r--lib/examples/client.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/examples/client.c b/lib/examples/client.c
index 2304e49..14555c7 100644
--- a/lib/examples/client.c
+++ b/lib/examples/client.c
@@ -25,7 +25,7 @@ rsx_client (const char *srvname, int srvport)
if (rs_conn_create (h, &conn))
return rs_conn_err_pop (conn);
- if (rs_conn_add_server (conn, &server, RS_CONN_TYPE_TCP, srvname, srvport))
+ if (rs_conn_add_server (conn, &server, RS_CONN_TYPE_UDP, srvname, srvport))
return rs_conn_err_pop (conn);
rs_server_set_timeout (server, 10);
rs_server_set_tries (server, 3);