aboutsummaryrefslogtreecommitdiff
path: root/src/transport/plugin_transport_http_client.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2013-07-13 15:33:30 +0000
committerChristian Grothoff <christian@grothoff.org>2013-07-13 15:33:30 +0000
commitee21a783ec2bb31b26a508d12ffad5d8b3c866e9 (patch)
tree93b4b89131605a3cde1bdd599c94e0eba37ae6f7 /src/transport/plugin_transport_http_client.c
parent9fa742ef8a7b4299f20292107dbe7a40fc08e2bf (diff)
downloadgnunet-ee21a783ec2bb31b26a508d12ffad5d8b3c866e9.tar.gz
gnunet-ee21a783ec2bb31b26a508d12ffad5d8b3c866e9.zip
-add dv_get_network to DV API, improve signature to use 'struct Session *' instead of 'void *'
Diffstat (limited to 'src/transport/plugin_transport_http_client.c')
-rw-r--r--src/transport/plugin_transport_http_client.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/transport/plugin_transport_http_client.c b/src/transport/plugin_transport_http_client.c
index 8f814b590..75daeab71 100644
--- a/src/transport/plugin_transport_http_client.c
+++ b/src/transport/plugin_transport_http_client.c
@@ -1438,6 +1438,7 @@ client_connect (struct Session *s)
1438 return res; 1438 return res;
1439} 1439}
1440 1440
1441
1441/** 1442/**
1442 * Function obtain the network type for a session 1443 * Function obtain the network type for a session
1443 * 1444 *
@@ -1446,11 +1447,11 @@ client_connect (struct Session *s)
1446 * @return the network type in HBO or GNUNET_SYSERR 1447 * @return the network type in HBO or GNUNET_SYSERR
1447 */ 1448 */
1448static enum GNUNET_ATS_Network_Type 1449static enum GNUNET_ATS_Network_Type
1449http_client_get_network (void *cls, void *session) 1450http_client_get_network (void *cls,
1451 struct Session *session)
1450{ 1452{
1451 struct Session *s = (struct Session *) session; 1453 GNUNET_assert (NULL != session);
1452 GNUNET_assert (NULL != s); 1454 return ntohl (session->ats_address_network_type);
1453 return ntohl(s->ats_address_network_type);
1454} 1455}
1455 1456
1456 1457