diff options
author | Christian Grothoff <christian@grothoff.org> | 2010-11-11 11:05:29 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2010-11-11 11:05:29 +0000 |
commit | 1b18069ef2567ffe0994c799d1d179329d629ca9 (patch) | |
tree | 187639305dfb68861d7391648a3ae33329e2a6ad /src/dv | |
parent | 9ab4762f15c31781e369db9d1358697f243ee650 (diff) | |
download | gnunet-1b18069ef2567ffe0994c799d1d179329d629ca9.tar.gz gnunet-1b18069ef2567ffe0994c799d1d179329d629ca9.zip |
adding argument to GNUNET_CORE_connect -- not yet implemented
Diffstat (limited to 'src/dv')
-rw-r--r-- | src/dv/gnunet-service-dv.c | 1 | ||||
-rw-r--r-- | src/dv/test_transport_api_dv.c | 11 |
2 files changed, 11 insertions, 1 deletions
diff --git a/src/dv/gnunet-service-dv.c b/src/dv/gnunet-service-dv.c index cfc1cd2d1..6001e33f4 100644 --- a/src/dv/gnunet-service-dv.c +++ b/src/dv/gnunet-service-dv.c | |||
@@ -2993,6 +2993,7 @@ run (void *cls, | |||
2993 | GNUNET_SERVER_add_handlers (server, plugin_handlers); | 2993 | GNUNET_SERVER_add_handlers (server, plugin_handlers); |
2994 | coreAPI = | 2994 | coreAPI = |
2995 | GNUNET_CORE_connect (cfg, | 2995 | GNUNET_CORE_connect (cfg, |
2996 | 1, | ||
2996 | GNUNET_TIME_relative_get_forever(), | 2997 | GNUNET_TIME_relative_get_forever(), |
2997 | NULL, /* FIXME: anything we want to pass around? */ | 2998 | NULL, /* FIXME: anything we want to pass around? */ |
2998 | &core_init, | 2999 | &core_init, |
diff --git a/src/dv/test_transport_api_dv.c b/src/dv/test_transport_api_dv.c index f53aa48f9..d4c7eef2c 100644 --- a/src/dv/test_transport_api_dv.c +++ b/src/dv/test_transport_api_dv.c | |||
@@ -529,6 +529,7 @@ init_notify_peer1 (void *cls, | |||
529 | * Connect to the receiving peer | 529 | * Connect to the receiving peer |
530 | */ | 530 | */ |
531 | pos->peer2handle = GNUNET_CORE_connect (pos->peer2->cfg, | 531 | pos->peer2handle = GNUNET_CORE_connect (pos->peer2->cfg, |
532 | 1, | ||
532 | TIMEOUT, | 533 | TIMEOUT, |
533 | pos, | 534 | pos, |
534 | &init_notify_peer2, | 535 | &init_notify_peer2, |
@@ -567,6 +568,7 @@ send_test_messages (void *cls, const struct GNUNET_SCHEDULER_TaskContext * tc) | |||
567 | * Connect to the sending peer | 568 | * Connect to the sending peer |
568 | */ | 569 | */ |
569 | pos->peer1handle = GNUNET_CORE_connect (pos->peer1->cfg, | 570 | pos->peer1handle = GNUNET_CORE_connect (pos->peer1->cfg, |
571 | 1, | ||
570 | TIMEOUT, | 572 | TIMEOUT, |
571 | pos, | 573 | pos, |
572 | &init_notify_peer1, | 574 | &init_notify_peer1, |
@@ -880,7 +882,14 @@ peers_started_callback (void *cls, | |||
880 | GNUNET_assert(GNUNET_SYSERR != GNUNET_CONTAINER_multihashmap_put(peer_daemon_hash, &id->hashPubKey, d, GNUNET_CONTAINER_MULTIHASHMAPOPTION_UNIQUE_ONLY)); | 882 | GNUNET_assert(GNUNET_SYSERR != GNUNET_CONTAINER_multihashmap_put(peer_daemon_hash, &id->hashPubKey, d, GNUNET_CONTAINER_MULTIHASHMAPOPTION_UNIQUE_ONLY)); |
881 | 883 | ||
882 | new_peer = GNUNET_malloc(sizeof(struct PeerContext)); | 884 | new_peer = GNUNET_malloc(sizeof(struct PeerContext)); |
883 | new_peer->peer_handle = GNUNET_CORE_connect(cfg, GNUNET_TIME_UNIT_FOREVER_REL, d, NULL, &all_connect_handler, NULL, NULL, NULL, GNUNET_NO, NULL, GNUNET_NO, no_handlers); | 885 | new_peer->peer_handle = GNUNET_CORE_connect(cfg, |
886 | 1, | ||
887 | GNUNET_TIME_UNIT_FOREVER_REL, | ||
888 | d, NULL, | ||
889 | &all_connect_handler, | ||
890 | NULL, NULL, NULL, | ||
891 | GNUNET_NO, NULL, GNUNET_NO, | ||
892 | no_handlers); | ||
884 | new_peer->daemon = d; | 893 | new_peer->daemon = d; |
885 | new_peer->next = all_peers; | 894 | new_peer->next = all_peers; |
886 | all_peers = new_peer; | 895 | all_peers = new_peer; |