aboutsummaryrefslogtreecommitdiff
path: root/src/multicast
diff options
context:
space:
mode:
authorBart Polot <bart@net.in.tum.de>2016-07-20 17:13:26 +0000
committerBart Polot <bart@net.in.tum.de>2016-07-20 17:13:26 +0000
commit90c70e8315c4a366996da379f839dc84d21d5f38 (patch)
tree0bfd73d2da8b8efb8de888c09ea4dd5bfc4cdb0f /src/multicast
parent3aab63d5c50db0eb784d3b65b2bd989d3458c960 (diff)
downloadgnunet-90c70e8315c4a366996da379f839dc84d21d5f38.tar.gz
gnunet-90c70e8315c4a366996da379f839dc84d21d5f38.zip
- fix CADET-using services
Diffstat (limited to 'src/multicast')
-rw-r--r--src/multicast/gnunet-service-multicast.c16
1 files changed, 6 insertions, 10 deletions
diff --git a/src/multicast/gnunet-service-multicast.c b/src/multicast/gnunet-service-multicast.c
index 55c269874..91cafb707 100644
--- a/src/multicast/gnunet-service-multicast.c
+++ b/src/multicast/gnunet-service-multicast.c
@@ -789,7 +789,7 @@ cadet_channel_create (struct Group *grp, struct GNUNET_PeerIdentity *peer)
789 chn->direction = DIR_OUTGOING; 789 chn->direction = DIR_OUTGOING;
790 chn->join_status = JOIN_WAITING; 790 chn->join_status = JOIN_WAITING;
791 chn->channel = GNUNET_CADET_channel_create (cadet, chn, &chn->peer, 791 chn->channel = GNUNET_CADET_channel_create (cadet, chn, &chn->peer,
792 GNUNET_APPLICATION_TYPE_MULTICAST, 792 GC_u2h (GNUNET_APPLICATION_TYPE_MULTICAST),
793 GNUNET_CADET_OPTION_RELIABLE); 793 GNUNET_CADET_OPTION_RELIABLE);
794 GNUNET_CONTAINER_multihashmap_put (channels_out, &chn->group_pub_hash, chn, 794 GNUNET_CONTAINER_multihashmap_put (channels_out, &chn->group_pub_hash, chn,
795 GNUNET_CONTAINER_MULTIHASHMAPOPTION_MULTIPLE); 795 GNUNET_CONTAINER_MULTIHASHMAPOPTION_MULTIPLE);
@@ -1484,7 +1484,7 @@ static void *
1484cadet_notify_channel_new (void *cls, 1484cadet_notify_channel_new (void *cls,
1485 struct GNUNET_CADET_Channel *channel, 1485 struct GNUNET_CADET_Channel *channel,
1486 const struct GNUNET_PeerIdentity *initiator, 1486 const struct GNUNET_PeerIdentity *initiator,
1487 uint32_t port, 1487 const struct GNUNET_HashCode *port,
1488 enum GNUNET_CADET_ChannelOption options) 1488 enum GNUNET_CADET_ChannelOption options)
1489{ 1489{
1490 return NULL; 1490 return NULL;
@@ -1810,12 +1810,6 @@ static const struct GNUNET_CADET_MessageHandler cadet_handlers[] = {
1810 1810
1811 1811
1812/** 1812/**
1813 * Listening ports for CADET.
1814 */
1815static const uint32_t cadet_ports[] = { GNUNET_APPLICATION_TYPE_MULTICAST, 0 };
1816
1817
1818/**
1819 * Connected to core service. 1813 * Connected to core service.
1820 */ 1814 */
1821static void 1815static void
@@ -1833,9 +1827,11 @@ core_connected_cb (void *cls, const struct GNUNET_PeerIdentity *my_identity)
1833 replay_req_client = GNUNET_CONTAINER_multihashmap_create (1, GNUNET_NO); 1827 replay_req_client = GNUNET_CONTAINER_multihashmap_create (1, GNUNET_NO);
1834 1828
1835 cadet = GNUNET_CADET_connect (cfg, NULL, 1829 cadet = GNUNET_CADET_connect (cfg, NULL,
1836 &cadet_notify_channel_new,
1837 &cadet_notify_channel_end, 1830 &cadet_notify_channel_end,
1838 cadet_handlers, cadet_ports); 1831 cadet_handlers);
1832 GNUNET_assert (NULL != cadet);
1833 GNUNET_CADET_open_port (cadet, GC_u2h (GNUNET_APPLICATION_TYPE_MULTICAST),
1834 &cadet_notify_channel_new, NULL);
1839 1835
1840 nc = GNUNET_SERVER_notification_context_create (server, 1); 1836 nc = GNUNET_SERVER_notification_context_create (server, 1);
1841 GNUNET_SERVER_add_handlers (server, server_handlers); 1837 GNUNET_SERVER_add_handlers (server, server_handlers);