diff options
Diffstat (limited to 'src/fs/gnunet-service-fs_cadet_server.c')
-rw-r--r-- | src/fs/gnunet-service-fs_cadet_server.c | 20 |
1 files changed, 9 insertions, 11 deletions
diff --git a/src/fs/gnunet-service-fs_cadet_server.c b/src/fs/gnunet-service-fs_cadet_server.c index 21874b674..32fe4191a 100644 --- a/src/fs/gnunet-service-fs_cadet_server.c +++ b/src/fs/gnunet-service-fs_cadet_server.c | |||
@@ -472,7 +472,8 @@ static void * | |||
472 | accept_cb (void *cls, | 472 | accept_cb (void *cls, |
473 | struct GNUNET_CADET_Channel *channel, | 473 | struct GNUNET_CADET_Channel *channel, |
474 | const struct GNUNET_PeerIdentity *initiator, | 474 | const struct GNUNET_PeerIdentity *initiator, |
475 | uint32_t port, enum GNUNET_CADET_ChannelOption options) | 475 | const struct GNUNET_HashCode *port, |
476 | enum GNUNET_CADET_ChannelOption options) | ||
476 | { | 477 | { |
477 | struct CadetClient *sc; | 478 | struct CadetClient *sc; |
478 | 479 | ||
@@ -561,11 +562,6 @@ GSF_cadet_start_server () | |||
561 | { &request_cb, GNUNET_MESSAGE_TYPE_FS_CADET_QUERY, sizeof (struct CadetQueryMessage)}, | 562 | { &request_cb, GNUNET_MESSAGE_TYPE_FS_CADET_QUERY, sizeof (struct CadetQueryMessage)}, |
562 | { NULL, 0, 0 } | 563 | { NULL, 0, 0 } |
563 | }; | 564 | }; |
564 | static const uint32_t ports[] = { | ||
565 | GNUNET_APPLICATION_TYPE_FS_BLOCK_TRANSFER, | ||
566 | 0 | ||
567 | }; | ||
568 | |||
569 | if (GNUNET_YES != | 565 | if (GNUNET_YES != |
570 | GNUNET_CONFIGURATION_get_value_number (GSF_cfg, | 566 | GNUNET_CONFIGURATION_get_value_number (GSF_cfg, |
571 | "fs", | 567 | "fs", |
@@ -576,11 +572,13 @@ GSF_cadet_start_server () | |||
576 | "Initializing cadet FS server with a limit of %llu connections\n", | 572 | "Initializing cadet FS server with a limit of %llu connections\n", |
577 | sc_count_max); | 573 | sc_count_max); |
578 | listen_channel = GNUNET_CADET_connect (GSF_cfg, | 574 | listen_channel = GNUNET_CADET_connect (GSF_cfg, |
579 | NULL, | 575 | NULL, |
580 | &accept_cb, | 576 | &cleaner_cb, |
581 | &cleaner_cb, | 577 | handlers); |
582 | handlers, | 578 | GNUNET_assert (NULL != listen_channel); |
583 | ports); | 579 | GNUNET_CADET_open_port (listen_channel, |
580 | GC_u2h (GNUNET_APPLICATION_TYPE_FS_BLOCK_TRANSFER), | ||
581 | &accept_cb, NULL); | ||
584 | } | 582 | } |
585 | 583 | ||
586 | 584 | ||