summaryrefslogtreecommitdiff
path: root/lib/examples
diff options
context:
space:
mode:
authorLinus Nordberg <linus@nordu.net>2011-02-28 11:46:14 +0100
committerLinus Nordberg <linus@nordu.net>2011-02-28 11:46:14 +0100
commit9e601f905d91f55c7a36f15fe5998d694c38444f (patch)
treed01ef4bbdafa4185517a4ca86cce2ac30213a7f4 /lib/examples
parent2befa02ee876e83a8f8849388e61250e74d75eaf (diff)
API changes: rs_client* --> rs_peer.
Move peer (former server) things to new file peer.c. Update examples.
Diffstat (limited to 'lib/examples')
-rw-r--r--lib/examples/client-blocking.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/examples/client-blocking.c b/lib/examples/client-blocking.c
index a7fc03d..80d6cce 100644
--- a/lib/examples/client-blocking.c
+++ b/lib/examples/client-blocking.c
@@ -30,13 +30,13 @@ blocking_client (const char *av1, const char *av2, int use_request_object_flag)
if (rs_conn_create (h, &conn, NULL))
return rs_err_conn_pop (conn);
rs_conn_set_type (conn, RS_CONN_TYPE_UDP);
- if (rs_server_create (conn, &server))
+ if (rs_peer_create (conn, &server))
return rs_err_conn_pop (conn);
- if (rs_server_set_address (server, av1, av2))
+ if (rs_peer_set_address (server, av1, av2))
return rs_err_conn_pop (conn);
- rs_server_set_timeout (server, 1);
- rs_server_set_tries (server, 3);
- if (rs_server_set_secret (server, SECRET))
+ rs_peer_set_timeout (server, 1);
+ rs_peer_set_retries (server, 3);
+ if (rs_peer_set_secret (server, SECRET))
return rs_err_conn_pop (conn);
}
#else