diff options
Diffstat (limited to 'src/mesh/test_mesh_single.c')
-rw-r--r-- | src/mesh/test_mesh_single.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/mesh/test_mesh_single.c b/src/mesh/test_mesh_single.c index 15e8a1dbd..689139b82 100644 --- a/src/mesh/test_mesh_single.c +++ b/src/mesh/test_mesh_single.c | |||
@@ -162,13 +162,14 @@ data_callback (void *cls, struct GNUNET_MESH_Channel *channel, | |||
162 | * @param channel new handle to the channel | 162 | * @param channel new handle to the channel |
163 | * @param initiator peer that started the channel | 163 | * @param initiator peer that started the channel |
164 | * @param port port number | 164 | * @param port port number |
165 | * @param options channel option flags | ||
165 | * @return initial channel context for the channel | 166 | * @return initial channel context for the channel |
166 | * (can be NULL -- that's not an error) | 167 | * (can be NULL -- that's not an error) |
167 | */ | 168 | */ |
168 | static void * | 169 | static void * |
169 | inbound_channel (void *cls, struct GNUNET_MESH_Channel *channel, | 170 | inbound_channel (void *cls, struct GNUNET_MESH_Channel *channel, |
170 | const struct GNUNET_PeerIdentity *initiator, | 171 | const struct GNUNET_PeerIdentity *initiator, |
171 | uint32_t port) | 172 | uint32_t port, enum MeshOption options) |
172 | { | 173 | { |
173 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, | 174 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, |
174 | "received incoming channel on port %u\n", | 175 | "received incoming channel on port %u\n", |
@@ -256,7 +257,8 @@ do_connect (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) | |||
256 | 257 | ||
257 | GNUNET_TESTING_peer_get_identity (me, &id); | 258 | GNUNET_TESTING_peer_get_identity (me, &id); |
258 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "CONNECT BY PORT\n"); | 259 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "CONNECT BY PORT\n"); |
259 | ch1 = GNUNET_MESH_channel_create (mesh, NULL, &id, 1, GNUNET_YES, GNUNET_NO); | 260 | ch1 = GNUNET_MESH_channel_create (mesh, NULL, &id, 1, |
261 | GNUNET_MESH_OPTION_DEFAULT); | ||
260 | GNUNET_MESH_notify_transmit_ready (ch1, GNUNET_NO, | 262 | GNUNET_MESH_notify_transmit_ready (ch1, GNUNET_NO, |
261 | GNUNET_TIME_UNIT_FOREVER_REL, | 263 | GNUNET_TIME_UNIT_FOREVER_REL, |
262 | size, &do_send, NULL); | 264 | size, &do_send, NULL); |