aboutsummaryrefslogtreecommitdiff
path: root/src/transport/transport_api_cmd_start_peer.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/transport/transport_api_cmd_start_peer.c')
-rw-r--r--src/transport/transport_api_cmd_start_peer.c17
1 files changed, 9 insertions, 8 deletions
diff --git a/src/transport/transport_api_cmd_start_peer.c b/src/transport/transport_api_cmd_start_peer.c
index da833f1b1..52eacabb2 100644
--- a/src/transport/transport_api_cmd_start_peer.c
+++ b/src/transport/transport_api_cmd_start_peer.c
@@ -147,9 +147,8 @@ notify_connect (void *cls,
147 147
148 GNUNET_free (key); 148 GNUNET_free (key);
149 149
150 sps->notify_connect (cls, 150 sps->notify_connect (sps->ac.is,
151 peer, 151 peer);
152 mq);
153 152
154 // TODO what does the handler function need? 153 // TODO what does the handler function need?
155 return ret; 154 return ret;
@@ -213,11 +212,11 @@ start_peer_run (void *cls,
213 GNUNET_asprintf (&bindto_udp, 212 GNUNET_asprintf (&bindto_udp,
214 "2086"); 213 "2086");
215 214
216 LOG (GNUNET_ERROR_TYPE_ERROR, 215 LOG (GNUNET_ERROR_TYPE_DEBUG,
217 "node_ip %s\n", 216 "node_ip %s\n",
218 bindto); 217 bindto);
219 218
220 LOG (GNUNET_ERROR_TYPE_ERROR, 219 LOG (GNUNET_ERROR_TYPE_DEBUG,
221 "bind_udp %s\n", 220 "bind_udp %s\n",
222 GNUNET_YES == sps->broadcast ? 221 GNUNET_YES == sps->broadcast ?
223 bindto_udp : bindto); 222 bindto_udp : bindto);
@@ -247,7 +246,7 @@ start_peer_run (void *cls,
247 246
248 sps->tl_system = tl_system; 247 sps->tl_system = tl_system;
249 248
250 LOG (GNUNET_ERROR_TYPE_ERROR, 249 LOG (GNUNET_ERROR_TYPE_DEBUG,
251 "Creating testing library with key number %u\n", 250 "Creating testing library with key number %u\n",
252 sps->no); 251 sps->no);
253 252
@@ -255,7 +254,7 @@ start_peer_run (void *cls,
255 GNUNET_TESTING_configuration_create (tl_system, 254 GNUNET_TESTING_configuration_create (tl_system,
256 sps->cfg)) 255 sps->cfg))
257 { 256 {
258 LOG (GNUNET_ERROR_TYPE_ERROR, 257 LOG (GNUNET_ERROR_TYPE_DEBUG,
259 "Testing library failed to create unique configuration based on `%s'\n", 258 "Testing library failed to create unique configuration based on `%s'\n",
260 sps->cfgname); 259 sps->cfgname);
261 GNUNET_CONFIGURATION_destroy (sps->cfg); 260 GNUNET_CONFIGURATION_destroy (sps->cfg);
@@ -359,6 +358,7 @@ start_peer_run (void *cls,
359 GNUNET_free (tcp_communicator_unix_path); 358 GNUNET_free (tcp_communicator_unix_path);
360 GNUNET_free (udp_communicator_unix_path); 359 GNUNET_free (udp_communicator_unix_path);
361 GNUNET_free (bindto); 360 GNUNET_free (bindto);
361 GNUNET_free (bindto_udp);
362} 362}
363 363
364 364
@@ -589,7 +589,8 @@ GNUNET_TRANSPORT_cmd_start_peer (const char *label,
589 char *node_ip, 589 char *node_ip,
590 struct GNUNET_MQ_MessageHandler *handlers, 590 struct GNUNET_MQ_MessageHandler *handlers,
591 const char *cfgname, 591 const char *cfgname,
592 GNUNET_TRANSPORT_NotifyConnect notify_connect, 592 GNUNET_TRANSPORT_notify_connect_cb
593 notify_connect,
593 unsigned int broadcast) 594 unsigned int broadcast)
594{ 595{
595 struct StartPeerState *sps; 596 struct StartPeerState *sps;