* @param peer peer identity this notification is about
*/
static void
-connected_peer_callback (void *cls, const struct GNUNET_PeerIdentity *peer)
+connected_peer_callback (void *cls,
+ const struct GNUNET_PeerIdentity *peer)
{
- struct GNUNET_CRYPTO_HashAsciiEncoded enc;
-
if (NULL == peer)
return;
- GNUNET_CRYPTO_hash_to_enc (&peer->hashPubKey, &enc);
- printf (_("Peer `%s'\n"), (const char *) &enc);
+ printf (_("Peer `%s'\n"),
+ GNUNET_i2s_full (peer));
}
-void
+
+static void
monitor_notify_startup (void *cls,
- struct GNUNET_CORE_Handle * server,
- const struct GNUNET_PeerIdentity *
- my_identity)
+ const struct GNUNET_PeerIdentity *my_identity)
{
my_id = (*my_identity);
}
}
-
/**
* Main function that will be run by the scheduler.
*