summaryrefslogtreecommitdiff
path: root/lib/peer.c
diff options
context:
space:
mode:
authorLinus Nordberg <linus@nordberg.se>2013-02-18 17:12:20 +0100
committerLinus Nordberg <linus@nordberg.se>2013-02-19 11:07:00 +0100
commitec47efe2b20e8ff21489744caaf646c692243860 (patch)
tree298581f11142b39e185b9c10e8bd6f1c435b026c /lib/peer.c
parent10fce2b693e8483d9cc7c024c1a2cd66e8fbef27 (diff)
WIP commit for listener support.
Diffstat (limited to 'lib/peer.c')
-rw-r--r--lib/peer.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/peer.c b/lib/peer.c
index 0ac4114..3e0069b 100644
--- a/lib/peer.c
+++ b/lib/peer.c
@@ -1,4 +1,4 @@
-/* Copyright 2010, 2011 NORDUnet A/S. All rights reserved.
+/* Copyright 2010,2011,2013 NORDUnet A/S. All rights reserved.
See LICENSE for licensing information. */
#if defined HAVE_CONFIG_H
@@ -23,7 +23,7 @@ peer_pick_peer (struct rs_connection *conn)
if (conn->active_peer)
conn->active_peer = conn->active_peer->next; /* Next. */
if (!conn->active_peer)
- conn->active_peer = conn->peers; /* From the top. */
+ conn->active_peer = conn->base_.peers; /* From the top. */
return conn->active_peer;
}
@@ -54,7 +54,7 @@ rs_peer_create (struct rs_connection *conn, struct rs_peer **peer_out)
{
struct rs_peer *peer;
- peer = peer_create (conn->ctx, &conn->peers);
+ peer = peer_create (conn->base_.ctx, &conn->base_.peers);
if (peer)
{
peer->conn = conn;
@@ -74,10 +74,10 @@ rs_peer_set_address (struct rs_peer *peer, const char *hostname,
{
assert (peer);
assert (peer->conn);
- assert (peer->conn->ctx);
+ assert (peer->conn->base_.ctx);
- peer->hostname = rs_strdup (peer->conn->ctx, hostname);
- peer->service = rs_strdup (peer->conn->ctx, service);
+ peer->hostname = rs_strdup (peer->conn->base_.ctx, hostname);
+ peer->service = rs_strdup (peer->conn->base_.ctx, service);
if (peer->hostname == NULL || peer->service == NULL)
return RSE_NOMEM;