[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r14140 - gnunet/src/vpn
From: |
gnunet |
Subject: |
[GNUnet-SVN] r14140 - gnunet/src/vpn |
Date: |
Mon, 10 Jan 2011 22:41:39 +0100 |
Author: toelke
Date: 2011-01-10 22:41:39 +0100 (Mon, 10 Jan 2011)
New Revision: 14140
Modified:
gnunet/src/vpn/gnunet-daemon-vpn.c
Log:
debug the core-send-to-self
Modified: gnunet/src/vpn/gnunet-daemon-vpn.c
===================================================================
--- gnunet/src/vpn/gnunet-daemon-vpn.c 2011-01-10 21:41:37 UTC (rev 14139)
+++ gnunet/src/vpn/gnunet-daemon-vpn.c 2011-01-10 21:41:39 UTC (rev 14140)
@@ -181,6 +181,7 @@
hdr->size = htons (sizeof (struct GNUNET_MessageHeader) +
sizeof (GNUNET_HashCode) + ntohs (udp->len));
hdr->type = ntohs (GNUNET_MESSAGE_TYPE_SERVICE_UDP);
+ GNUNET_log(GNUNET_ERROR_TYPE_DEBUG, "send_udp_to_peer_notify_callback: buf =
%x; size = %u;\n", buf, size);
GNUNET_assert (size >= ntohs (hdr->size));
memcpy (buf, hdr, ntohs (hdr->size));
size = ntohs(hdr->size);
@@ -212,7 +213,8 @@
htons (sizeof
(struct GNUNET_MessageHeader) +
sizeof (GNUNET_HashCode) +
- ntohs (udp->len)),
send_udp_to_peer_notify_callback,
+ ntohs (udp->len)),
+ send_udp_to_peer_notify_callback,
cls);
}
@@ -442,6 +444,14 @@
return GNUNET_OK;
}
+void init_core (void* cls, struct GNUNET_CORE_Handle* server, const struct
GNUNET_PeerIdentity* my_identity, const struct
GNUNET_CRYPTO_RsaPublicKeyBinaryEncoded *pubkey) {
+ GNUNET_log(GNUNET_ERROR_TYPE_DEBUG, "Connected to CORE, I am %x\n",
*((unsigned long*)my_identity));
+}
+
+void connect_core (void* cls, const struct GNUNET_PeerIdentity* peer, const
struct GNUNET_TRANSPORT_ATS_Information *atsi) {
+ GNUNET_log(GNUNET_ERROR_TYPE_DEBUG, "Connected to peer %x\n", *((unsigned
long*)peer));
+}
+
/**
* Main function that will be run by the scheduler.
*
@@ -463,11 +473,11 @@
core_handle = GNUNET_CORE_connect(cfg_,
42,
NULL,
+ init_core,
+ connect_core,
NULL,
NULL,
NULL,
- NULL,
- NULL,
0,
NULL,
0,
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r14140 - gnunet/src/vpn,
gnunet <=