aboutsummaryrefslogtreecommitdiff
path: root/src/transport/gnunet-transport.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2013-09-30 20:35:10 +0000
committerChristian Grothoff <christian@grothoff.org>2013-09-30 20:35:10 +0000
commita0ba5b741b56036bd35bd9ba88164324b2ff7ada (patch)
tree3fd10a0fc15f9a9e7cf5415b2bec86d97d7fe825 /src/transport/gnunet-transport.c
parent427dd6f998fb1fde515a3b5c800f9f6d308197b2 (diff)
downloadgnunet-a0ba5b741b56036bd35bd9ba88164324b2ff7ada.tar.gz
gnunet-a0ba5b741b56036bd35bd9ba88164324b2ff7ada.zip
-getting ATS and transport to compile again (part of #3047)
Diffstat (limited to 'src/transport/gnunet-transport.c')
-rw-r--r--src/transport/gnunet-transport.c19
1 files changed, 7 insertions, 12 deletions
diff --git a/src/transport/gnunet-transport.c b/src/transport/gnunet-transport.c
index 641261c05..4fc1622b3 100644
--- a/src/transport/gnunet-transport.c
+++ b/src/transport/gnunet-transport.c
@@ -166,8 +166,6 @@ static GNUNET_SCHEDULER_TaskIdentifier end;
166static GNUNET_SCHEDULER_TaskIdentifier op_timeout; 166static GNUNET_SCHEDULER_TaskIdentifier op_timeout;
167 167
168 168
169static struct GNUNET_CONTAINER_MultiHashMap *peers;
170
171/** 169/**
172 * Selected level of verbosity. 170 * Selected level of verbosity.
173 */ 171 */
@@ -255,11 +253,6 @@ shutdown_task (void *cls,
255 GNUNET_TRANSPORT_disconnect(handle); 253 GNUNET_TRANSPORT_disconnect(handle);
256 handle = NULL; 254 handle = NULL;
257 } 255 }
258 if (NULL != peers)
259 {
260 GNUNET_CONTAINER_multihashmap_destroy (peers);
261 peers = NULL;
262 }
263 if (benchmark_send) 256 if (benchmark_send)
264 { 257 {
265 duration = GNUNET_TIME_absolute_get_duration (start_time); 258 duration = GNUNET_TIME_absolute_get_duration (start_time);
@@ -300,7 +293,7 @@ operation_timeout (void *cls,
300 if ((try_connect) || (benchmark_send) || 293 if ((try_connect) || (benchmark_send) ||
301 (benchmark_receive)) 294 (benchmark_receive))
302 { 295 {
303 FPRINTF (stdout, _("Failed to connect to `%s'\n"), GNUNET_h2s_full (&pid.hashPubKey)); 296 FPRINTF (stdout, _("Failed to connect to `%s'\n"), GNUNET_i2s_full (&pid));
304 if (GNUNET_SCHEDULER_NO_TASK != end) 297 if (GNUNET_SCHEDULER_NO_TASK != end)
305 GNUNET_SCHEDULER_cancel (end); 298 GNUNET_SCHEDULER_cancel (end);
306 end = GNUNET_SCHEDULER_add_now (&shutdown_task, NULL); 299 end = GNUNET_SCHEDULER_add_now (&shutdown_task, NULL);
@@ -525,7 +518,9 @@ notify_connect (void *cls, const struct GNUNET_PeerIdentity *peer)
525 if (try_connect) 518 if (try_connect)
526 { 519 {
527 /* all done, terminate instantly */ 520 /* all done, terminate instantly */
528 FPRINTF (stdout, _("Successfully connected to `%s'\n"), GNUNET_h2s_full (&peer->hashPubKey)); 521 FPRINTF (stdout,
522 _("Successfully connected to `%s'\n"),
523 GNUNET_i2s_full (peer));
529 ret = 0; 524 ret = 0;
530 525
531 if (GNUNET_SCHEDULER_NO_TASK != op_timeout) 526 if (GNUNET_SCHEDULER_NO_TASK != op_timeout)
@@ -814,7 +809,9 @@ testservice_task (void *cls,
814 } 809 }
815 810
816 if ( (NULL != cpid) && 811 if ( (NULL != cpid) &&
817 (GNUNET_OK != GNUNET_CRYPTO_hash_from_string (cpid, &pid.hashPubKey))) 812 (GNUNET_OK != GNUNET_CRYPTO_ecc_public_sign_key_from_string (cpid,
813 strlen (cpid),
814 &pid.public_key)))
818 { 815 {
819 FPRINTF (stderr, _("Failed to parse peer identity `%s'\n"), cpid); 816 FPRINTF (stderr, _("Failed to parse peer identity `%s'\n"), cpid);
820 return; 817 return;
@@ -914,7 +911,6 @@ testservice_task (void *cls,
914 } 911 }
915 else if (iterate_connections) /* -i: List all active addresses once */ 912 else if (iterate_connections) /* -i: List all active addresses once */
916 { 913 {
917 peers = GNUNET_CONTAINER_multihashmap_create (20, GNUNET_NO);
918 address_resolution_in_progress = GNUNET_YES; 914 address_resolution_in_progress = GNUNET_YES;
919 pic = GNUNET_TRANSPORT_peer_get_active_addresses (cfg, 915 pic = GNUNET_TRANSPORT_peer_get_active_addresses (cfg,
920 (NULL == cpid) ? NULL : &pid, 916 (NULL == cpid) ? NULL : &pid,
@@ -926,7 +922,6 @@ testservice_task (void *cls,
926 } 922 }
927 else if (monitor_connections) /* -m: List all active addresses continously */ 923 else if (monitor_connections) /* -m: List all active addresses continously */
928 { 924 {
929 peers = GNUNET_CONTAINER_multihashmap_create (20, GNUNET_NO);
930 address_resolution_in_progress = GNUNET_YES; 925 address_resolution_in_progress = GNUNET_YES;
931 pic = GNUNET_TRANSPORT_peer_get_active_addresses (cfg, 926 pic = GNUNET_TRANSPORT_peer_get_active_addresses (cfg,
932 (NULL == cpid) ? NULL : &pid, 927 (NULL == cpid) ? NULL : &pid,