diff options
Diffstat (limited to 'src/transport/transport_api_cmd_connecting_peers.c')
-rw-r--r-- | src/transport/transport_api_cmd_connecting_peers.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/transport/transport_api_cmd_connecting_peers.c b/src/transport/transport_api_cmd_connecting_peers.c index 06e2b8d61..0f2154c46 100644 --- a/src/transport/transport_api_cmd_connecting_peers.c +++ b/src/transport/transport_api_cmd_connecting_peers.c | |||
@@ -63,8 +63,8 @@ connect_peers_run (void *cls, | |||
63 | GNUNET_TRANSPORT_get_trait_application_handle (peer1_cmd, | 63 | GNUNET_TRANSPORT_get_trait_application_handle (peer1_cmd, |
64 | &ah); | 64 | &ah); |
65 | 65 | ||
66 | GNUNET_TESTING_get_trait_hello (peer1_cmd, | 66 | GNUNET_TRANSPORT_get_trait_hello (peer1_cmd, |
67 | &hello); | 67 | &hello); |
68 | 68 | ||
69 | LOG (GNUNET_ERROR_TYPE_ERROR, | 69 | LOG (GNUNET_ERROR_TYPE_ERROR, |
70 | "hello: %s\n", | 70 | "hello: %s\n", |
@@ -73,11 +73,11 @@ connect_peers_run (void *cls, | |||
73 | // TODO This does not work, because the other peer is running in another local loop. We need to message between different local loops. For now we will create the hello manually with the known information about the other local peers. | 73 | // TODO This does not work, because the other peer is running in another local loop. We need to message between different local loops. For now we will create the hello manually with the known information about the other local peers. |
74 | // --------------------------------------------- | 74 | // --------------------------------------------- |
75 | /*peer2_cmd = GNUNET_TESTING_interpreter_lookup_command (cps->peer2_label); | 75 | /*peer2_cmd = GNUNET_TESTING_interpreter_lookup_command (cps->peer2_label); |
76 | GNUNET_TESTING_get_trait_peer_id (peer2_cmd, | 76 | GNUNET_TRANSPORT_get_trait_peer_id (peer2_cmd, |
77 | &id); | 77 | &id); |
78 | GNUNET_TESTING_get_trait_hello (peer2_cmd, | 78 | GNUNET_TRANSPORT_get_trait_hello (peer2_cmd, |
79 | &hello); | 79 | &hello); |
80 | GNUNET_TESTING_get_trait_hello_size (peer2_cmd, | 80 | GNUNET_TRANSPORT_get_trait_hello_size (peer2_cmd, |
81 | &hello_size); | 81 | &hello_size); |
82 | 82 | ||
83 | addr = GNUNET_HELLO_extract_address (hello, | 83 | addr = GNUNET_HELLO_extract_address (hello, |
@@ -108,11 +108,11 @@ connect_peers_finish (void *cls, | |||
108 | struct GNUNET_PeerIdentity *id; | 108 | struct GNUNET_PeerIdentity *id; |
109 | 109 | ||
110 | peer1_cmd = GNUNET_TESTING_interpreter_lookup_command (cps->peer1_label); | 110 | peer1_cmd = GNUNET_TESTING_interpreter_lookup_command (cps->peer1_label); |
111 | GNUNET_TESTING_get_trait_peer_id (peer1_cmd, | 111 | GNUNET_TRANSPORT_get_trait_peer_id (peer1_cmd, |
112 | &id); | 112 | &id); |
113 | 113 | ||
114 | peer2_cmd = GNUNET_TESTING_interpreter_lookup_command (cps->peer2_label); | 114 | peer2_cmd = GNUNET_TESTING_interpreter_lookup_command (cps->peer2_label); |
115 | GNUNET_TESTING_get_trait_connected_peers_map (peer2_cmd, | 115 | GNUNET_TRANSPORT_get_trait_connected_peers_map (peer2_cmd, |
116 | &connected_peers_map); | 116 | &connected_peers_map); |
117 | 117 | ||
118 | ret = GNUNET_CONTAINER_multipeermap_contains (connected_peers_map, | 118 | ret = GNUNET_CONTAINER_multipeermap_contains (connected_peers_map, |