diff options
author | Christian Grothoff <christian@grothoff.org> | 2016-07-08 16:34:31 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2016-07-08 16:34:31 +0000 |
commit | 6e3599bab213760c66f13f6103ebf650bbe5b7e9 (patch) | |
tree | f56a0bbe3ce64c818c87bae6171ba800ab05b701 /src/peerinfo-tool | |
parent | 2c0a286c8c29e135c68556658b6ac6cef48a874a (diff) | |
download | gnunet-6e3599bab213760c66f13f6103ebf650bbe5b7e9.tar.gz gnunet-6e3599bab213760c66f13f6103ebf650bbe5b7e9.zip |
migrate transport_core API to MQ
Diffstat (limited to 'src/peerinfo-tool')
-rw-r--r-- | src/peerinfo-tool/gnunet-peerinfo.c | 18 |
1 files changed, 1 insertions, 17 deletions
diff --git a/src/peerinfo-tool/gnunet-peerinfo.c b/src/peerinfo-tool/gnunet-peerinfo.c index b6aa224fd..14f1e4604 100644 --- a/src/peerinfo-tool/gnunet-peerinfo.c +++ b/src/peerinfo-tool/gnunet-peerinfo.c | |||
@@ -183,11 +183,6 @@ static struct GNUNET_SCHEDULER_Task * tt; | |||
183 | static struct GNUNET_TRANSPORT_GetHelloHandle *gh; | 183 | static struct GNUNET_TRANSPORT_GetHelloHandle *gh; |
184 | 184 | ||
185 | /** | 185 | /** |
186 | * Connection to transport service. | ||
187 | */ | ||
188 | static struct GNUNET_TRANSPORT_Handle *transport; | ||
189 | |||
190 | /** | ||
191 | * Current iterator context (if active, otherwise NULL). | 186 | * Current iterator context (if active, otherwise NULL). |
192 | */ | 187 | */ |
193 | static struct GNUNET_PEERINFO_IteratorContext *pic; | 188 | static struct GNUNET_PEERINFO_IteratorContext *pic; |
@@ -641,11 +636,6 @@ shutdown_task (void *cls) | |||
641 | GNUNET_TRANSPORT_get_hello_cancel (gh); | 636 | GNUNET_TRANSPORT_get_hello_cancel (gh); |
642 | gh = NULL; | 637 | gh = NULL; |
643 | } | 638 | } |
644 | if (NULL != transport) | ||
645 | { | ||
646 | GNUNET_TRANSPORT_disconnect (transport); | ||
647 | transport = NULL; | ||
648 | } | ||
649 | while (NULL != (pc = pc_head)) | 639 | while (NULL != (pc = pc_head)) |
650 | { | 640 | { |
651 | GNUNET_CONTAINER_DLL_remove (pc_head, | 641 | GNUNET_CONTAINER_DLL_remove (pc_head, |
@@ -702,8 +692,6 @@ hello_callback (void *cls, | |||
702 | &my_peer_identity)); | 692 | &my_peer_identity)); |
703 | GNUNET_TRANSPORT_get_hello_cancel (gh); | 693 | GNUNET_TRANSPORT_get_hello_cancel (gh); |
704 | gh = NULL; | 694 | gh = NULL; |
705 | GNUNET_TRANSPORT_disconnect (transport); | ||
706 | transport = NULL; | ||
707 | if (NULL != dump_hello) | 695 | if (NULL != dump_hello) |
708 | dump_my_hello (); | 696 | dump_my_hello (); |
709 | tt = GNUNET_SCHEDULER_add_now (&state_machine, NULL); | 697 | tt = GNUNET_SCHEDULER_add_now (&state_machine, NULL); |
@@ -740,11 +728,7 @@ testservice_task (void *cls, | |||
740 | (GNUNET_YES == get_uri) || | 728 | (GNUNET_YES == get_uri) || |
741 | (NULL != dump_hello) ) | 729 | (NULL != dump_hello) ) |
742 | { | 730 | { |
743 | transport = GNUNET_TRANSPORT_connect (cfg, | 731 | gh = GNUNET_TRANSPORT_get_hello (cfg, |
744 | NULL, | ||
745 | NULL, | ||
746 | NULL, NULL, NULL); | ||
747 | gh = GNUNET_TRANSPORT_get_hello (transport, | ||
748 | &hello_callback, | 732 | &hello_callback, |
749 | NULL); | 733 | NULL); |
750 | } | 734 | } |