static const GNUNET_MESH_ApplicationType app[] =
{ 1, 2, 3, 4, 5, 6, 7, 8, 0 };
- mesh = GNUNET_MESH_connect (cfg, 10, NULL, NULL, NULL, handlers, app);
+ mesh = GNUNET_MESH_connect (cfg, NULL, NULL, NULL, handlers, app);
if (NULL == mesh)
{
GNUNET_log (GNUNET_ERROR_TYPE_ERROR, "test: Couldn't connect to mesh :(\n");
(GNUNET_TIME_UNIT_SECONDS, 20), &do_abort,
NULL);
mesh_peer_1 = GNUNET_MESH_connect (cfg, /* configuration */
- 10, /* queue size */
(void *) &one, /* cls */
&inbound_tunnel, /* inbound new hndlr */
&inbound_end, /* inbound end hndlr */
app1); /* apps offered */
mesh_peer_2 = GNUNET_MESH_connect (cfg, /* configuration */
- 10, /* queue size */
(void *) &two, /* cls */
&inbound_tunnel, /* inbound new hndlr */
&inbound_end, /* inbound end hndlr */
test_task = GNUNET_SCHEDULER_NO_TASK;
mesh_peer_1 = GNUNET_MESH_connect (cfg, /* configuration */
- 10, /* queue size */
(void *) &one, /* cls */
&inbound_tunnel, /* inbound new hndlr */
&inbound_end, /* inbound end hndlr */
(GNUNET_TIME_UNIT_SECONDS, 20), &do_abort,
NULL);
mesh_peer_2 = GNUNET_MESH_connect (cfg, /* configuration */
- 10, /* queue size */
(void *) &two, /* cls */
&inbound_tunnel, /* inbound new hndlr */
&inbound_end, /* inbound end hndlr */
GNUNET_i2s (peer));
regex_peers++;
- GNUNET_MESH_notify_transmit_ready(t[i], 0, 0,
+ GNUNET_MESH_notify_transmit_ready(t[i], GNUNET_NO,
GNUNET_TIME_UNIT_FOREVER_REL,
peer,
sizeof(struct GNUNET_MessageHeader),
GNUNET_log (GNUNET_ERROR_TYPE_INFO,
"Connect to mesh\n");
- h1 = GNUNET_MESH_connect (d->cfg, 5, (void *) 1L,
+ h1 = GNUNET_MESH_connect (d->cfg, (void *) 1L,
NULL,
NULL,
handlers,
{
ok[i] = GNUNET_NO;
d = GNUNET_TESTING_daemon_get (pg, 10 + i);
- h2[i] = GNUNET_MESH_connect (d->cfg, 5, (void *) (long) (i + 2),
+ h2[i] = GNUNET_MESH_connect (d->cfg, (void *) (long) (i + 2),
&incoming_tunnel,
&tunnel_cleaner,
handlers,
struct GNUNET_MESH_TransmitHandle *th;
if ((GNUNET_SCHEDULER_REASON_SHUTDOWN & tc->reason) != 0)
return;
- th = GNUNET_MESH_notify_transmit_ready (t, GNUNET_NO, 0,
+ th = GNUNET_MESH_notify_transmit_ready (t, GNUNET_NO,
GNUNET_TIME_UNIT_FOREVER_REL, &d2->id,
sizeof (struct GNUNET_MessageHeader),
&tmt_rdy, (void *) 1L);
{
GNUNET_log (GNUNET_ERROR_TYPE_INFO,
" received ack %u\n", data_ack);
- GNUNET_MESH_notify_transmit_ready (tunnel, GNUNET_NO, 0,
+ GNUNET_MESH_notify_transmit_ready (tunnel, GNUNET_NO,
GNUNET_TIME_UNIT_FOREVER_REL, sender,
sizeof (struct GNUNET_MessageHeader),
&tmt_rdy, (void *) 1L);
GNUNET_log (GNUNET_ERROR_TYPE_INFO, " ok: %d\n", ok);
if (SPEED != test || 1002 == ok)
{
- GNUNET_MESH_notify_transmit_ready (tunnel, GNUNET_NO, 0,
+ GNUNET_MESH_notify_transmit_ready (tunnel, GNUNET_NO,
GNUNET_TIME_UNIT_FOREVER_REL, sender,
sizeof (struct GNUNET_MessageHeader),
&tmt_rdy, (void *) 1L);
data_received = 0;
data_sent = 0;
start_time = GNUNET_TIME_absolute_get();
- GNUNET_MESH_notify_transmit_ready (t, GNUNET_NO, 0,
+ GNUNET_MESH_notify_transmit_ready (t, GNUNET_NO,
GNUNET_TIME_UNIT_FOREVER_REL, dest,
sizeof (struct GNUNET_MessageHeader),
&tmt_rdy, (void *) 1L);
GNUNET_i2s (&d3->id));
}
#endif
- h1 = GNUNET_MESH_connect (d1->cfg, 5, (void *) 1L, NULL, &tunnel_cleaner,
+ h1 = GNUNET_MESH_connect (d1->cfg, (void *) 1L, NULL, &tunnel_cleaner,
handlers, &app);
- h2 = GNUNET_MESH_connect (d2->cfg, 5, (void *) 2L, &incoming_tunnel,
+ h2 = GNUNET_MESH_connect (d2->cfg, (void *) 2L, &incoming_tunnel,
&tunnel_cleaner, handlers, &app);
if (test == MULTICAST)
{
- h3 = GNUNET_MESH_connect (d3->cfg, 5, (void *) 3L, &incoming_tunnel,
+ h3 = GNUNET_MESH_connect (d3->cfg, (void *) 3L, &incoming_tunnel,
&tunnel_cleaner, handlers, &app);
}
t = GNUNET_MESH_tunnel_create (h1, NULL, &ch, &dh, (void *) 1L);