};
+static struct GNUNET_PeerIdentity me;
+
static void
core_init (void *cls,
struct GNUNET_CORE_Handle * server,
GNUNET_CRYPTO_RsaPublicKeyBinaryEncoded *
publicKey)
{
- /* Nothing to do here */
+ me = *my_identity;
}
/**
GNUNET_PeerIdentity * peer,
const struct GNUNET_TRANSPORT_ATS_Information *atsi)
{
+ if (0 == memcmp (&me, peer, sizeof (struct GNUNET_PeerIdentity)))
+ return;
GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
"A new peer connected, notifying client and server\n");
if ( NULL != client_ch)
const struct
GNUNET_PeerIdentity * peer)
{
-
+ if (0 == memcmp (&me, peer, sizeof (struct GNUNET_PeerIdentity)))
+ return;
/* call hostlist client disconnect handler*/
if ( NULL != client_dh)
(*client_dh) (cls, peer);