{
#if VERBOSE
GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
- "Receiving message from `%4s'.\n", GNUNET_i2s (peer));
+ "Receiving message from `%4s' of type %d.\n", GNUNET_i2s (peer), ntohs(message->type));
#endif
GNUNET_SCHEDULER_cancel (sched, die_task);
GNUNET_SCHEDULER_add_now (sched, &finish_testing, NULL);
#endif
}
-
-static int
-inbound_notify (void *cls,
- const struct GNUNET_PeerIdentity *other,
- const struct GNUNET_MessageHeader *message,
- struct GNUNET_TIME_Relative latency,
- uint32_t distance)
-{
-#if VERBOSE
- GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
- "Core provides inbound data from `%4s'.\n", GNUNET_i2s (other));
-#endif
- return GNUNET_OK;
-}
-
-
static int
outbound_notify (void *cls,
const struct GNUNET_PeerIdentity *other,
NULL,
&connect_notify,
&disconnect_notify,
- &inbound_notify,
+ NULL,
GNUNET_YES,
&outbound_notify, GNUNET_YES, handlers);
}
NULL,
&connect_notify,
&disconnect_notify,
- &inbound_notify,
+ NULL,
GNUNET_YES, &outbound_notify, GNUNET_YES, handlers);
}
(GNUNET_TIME_UNIT_MINUTES, 5),
&end_badly, NULL);
create_topology ();
- ok = 0;
+ ok = 477;
}
}